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/59912 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59912/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59912/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59912/events | https://github.com/tensorflow/tensorflow/issues/59912 | 1,611,284,319 | I_kwDOArmXAs5gCj9f | 59,912 | ValueError: setting an array element with a sequence. | {
"login": "NoteDance",
"id": 63648431,
"node_id": "MDQ6VXNlcjYzNjQ4NDMx",
"avatar_url": "https://avatars.githubusercontent.com/u/63648431?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NoteDance",
"html_url": "https://github.com/NoteDance",
"followers_url": "https://api.github.com/users/NoteDance/followers",
"following_url": "https://api.github.com/users/NoteDance/following{/other_user}",
"gists_url": "https://api.github.com/users/NoteDance/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NoteDance/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NoteDance/subscriptions",
"organizations_url": "https://api.github.com/users/NoteDance/orgs",
"repos_url": "https://api.github.com/users/NoteDance/repos",
"events_url": "https://api.github.com/users/NoteDance/events{/privacy}",
"received_events_url": "https://api.github.com/users/NoteDance/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": 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": 1188421838,
"node_id": "MDU6TGFiZWwxMTg4NDIxODM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows",
"name": "subtype:windows",
"color": "b619ea",
"default": false,
"description": "Windows Build/Installation Issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | open | false | {
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi, @NoteDancing \r\n\r\nApologize for the delayed response and I was able to replicate the same issue on Google Colab with `Tensorflow==2.11` and it's giving me the same error what you're getting, for your reference I have added [gist-file ](https://colab.research.google.com/gist/gaikwadrahul8/4260c9fe4666543803dafb1549b0eab9/-59912-test.ipynb) and We have to dig more into this issue so we'll update you soon, Meanwhile could you please check this [stack-overflow answer](https://stackoverflow.com/questions/4674473/valueerror-setting-an-array-element-with-a-sequence) which may solve your issue. Thank you!",
"@gaikwadrahul8 Thank you for your answer, I modified the code and have new question.[here](https://colab.research.google.com/gist/NoteDancing/12e89ace85e0a8f6d95cf82d569c0f8c/-59912-test.ipynb#scrollTo=FHED_9qoA6np&line=1&uniqifier=1)",
"Hi, @NoteDancing \r\n\r\nApologize for the delayed response and I would suggest you to please refer our [Autograph reference guide ](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/index.md) and that official documentation has some sections which may help to solve your issue like [Better performance with tf.function](https://www.tensorflow.org/guide/function), [Error handling](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/error_handling.md), [Limitations](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/limitations.md), [Common AutoGraph errors](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/common_errors.md) till then I'll try to replicate same issue from my end and I'll update you soon.Thank you!",
"@gaikwadrahul8 Thank you for your answer.",
"Hi, @NoteDancing \r\n\r\nYou're welcome and Just to confirm, May I know your issue got resolved by following above documentation or still you need help with your issue ? Thank you!",
"@gaikwadrahul8 No, I haven't resolved it yet.Thank you!"
] | 2023-03-06T12:15:24 | 2023-03-23T12:38:00 | null | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Support
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
tf 2.11.0
### Custom Code
Yes
### OS Platform and Distribution
Windows 11
### Mobile device
_No response_
### Python version
3.7.16
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
ValueError: setting an array element with a sequence.
```
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
import numpy as np
a=np.ones([64])
b=np.ones([64])
class assign:
def __init__(self):
self.c=np.ones([64])
def assign(self,d):
for i in range(len(self.c)):
self.c[i]=d[i]
def sub(a,b,assign_object):
d=a-b
assign_object.assign(d)
@tf.function
def f(a,b,assign_object):
sub(a,b,assign_object)
assign_object=assign()
f(a,b,assign_object)
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59912/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59912/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59911 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59911/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59911/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59911/events | https://github.com/tensorflow/tensorflow/issues/59911 | 1,611,220,687 | I_kwDOArmXAs5gCUbP | 59,911 | Resize OP doesn't work in Metal delegate with dynamic shape input in TFLite | {
"login": "Kepnu4",
"id": 2921717,
"node_id": "MDQ6VXNlcjI5MjE3MTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/2921717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kepnu4",
"html_url": "https://github.com/Kepnu4",
"followers_url": "https://api.github.com/users/Kepnu4/followers",
"following_url": "https://api.github.com/users/Kepnu4/following{/other_user}",
"gists_url": "https://api.github.com/users/Kepnu4/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kepnu4/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kepnu4/subscriptions",
"organizations_url": "https://api.github.com/users/Kepnu4/orgs",
"repos_url": "https://api.github.com/users/Kepnu4/repos",
"events_url": "https://api.github.com/users/Kepnu4/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kepnu4/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 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": 2671339633,
"node_id": "MDU6TGFiZWwyNjcxMzM5NjMz",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate",
"name": "TFLiteGpuDelegate",
"color": "F71F04",
"default": false,
"description": "TFLite Gpu delegate issue"
}
] | closed | false | {
"login": "impjdi",
"id": 9742927,
"node_id": "MDQ6VXNlcjk3NDI5Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9742927?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/impjdi",
"html_url": "https://github.com/impjdi",
"followers_url": "https://api.github.com/users/impjdi/followers",
"following_url": "https://api.github.com/users/impjdi/following{/other_user}",
"gists_url": "https://api.github.com/users/impjdi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/impjdi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/impjdi/subscriptions",
"organizations_url": "https://api.github.com/users/impjdi/orgs",
"repos_url": "https://api.github.com/users/impjdi/repos",
"events_url": "https://api.github.com/users/impjdi/events{/privacy}",
"received_events_url": "https://api.github.com/users/impjdi/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "impjdi",
"id": 9742927,
"node_id": "MDQ6VXNlcjk3NDI5Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/9742927?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/impjdi",
"html_url": "https://github.com/impjdi",
"followers_url": "https://api.github.com/users/impjdi/followers",
"following_url": "https://api.github.com/users/impjdi/following{/other_user}",
"gists_url": "https://api.github.com/users/impjdi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/impjdi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/impjdi/subscriptions",
"organizations_url": "https://api.github.com/users/impjdi/orgs",
"repos_url": "https://api.github.com/users/impjdi/repos",
"events_url": "https://api.github.com/users/impjdi/events{/privacy}",
"received_events_url": "https://api.github.com/users/impjdi/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
},
{
"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 | [
"@Kepnu4 Thanks for reporting the issue.\r\n\r\nThe supported for dynamic shapes by the TF Lite GPU Delegate is not available AFAIK. \r\n\r\nAlso, when tflite [analyzer](https://www.tensorflow.org/lite/api_docs/python/tf/lite/experimental/Analyzer) is used, I could observe the following:\r\n\r\n```\r\nSubgraph#0 main(T#0) -> [T#10]\r\n Op#0 SHAPE(T#0) -> [T#4]\r\nGPU COMPATIBILITY WARNING: Not supported op SHAPE\r\n Op#1 STRIDED_SLICE(T#4, T#3[1], T#2[3], T#3[1]) -> [T#5]\r\nGPU COMPATIBILITY WARNING: STRIDED_SLICE supports for 3 or 4 dimensional tensors only.\r\n Op#2 CAST(T#5) -> [T#6]\r\nGPU COMPATIBILITY WARNING: Not supported Cast case. Input type: INT64 and output type: FLOAT32\r\n Op#3 MUL(T#6, T#1) -> [T#7]\r\n Op#4 CAST(T#7) -> [T#8]\r\n Op#5 RESIZE_NEAREST_NEIGHBOR(T#0, T#8) -> [T#9]\r\nGPU COMPATIBILITY WARNING: Expected 1 runtime input tensor(s), but node has 2 runtime input(s).\r\n Op#6 RELU(T#9) -> [T#10]\r\n```\r\nPlease find the gist [here](https://colab.research.google.com/gist/pjpratik/c1373679cf3769e62df9310b22df0997/59911.ipynb) and the list of supported ML operations on GPU [here](https://www.tensorflow.org/lite/performance/gpu#supported_ops).\r\n\r\nThanks.",
"Thanks @pjpratik, \r\nI find that dynamic shapes actually work in Metal delegate, for example this network with downsampling convolution works fine. So basically encoder part works but i can't obtain working decode parts because of upsampling. \r\nFor unsupported operation i find it another problem, because resize got shape as input instead of upscaling factor. So it produces this shape operations when i just want to do 2x resize.\r\n\r\n<img width=\"212\" alt=\"image\" src=\"https://user-images.githubusercontent.com/2921717/224312426-73b45c71-9831-41e0-932a-50a77b0e98f8.png\">\r\n\r\n[test_net.tflite.zip](https://github.com/tensorflow/tensorflow/files/10941936/test_net.tflite.zip)\r\n",
"@Kepnu4 Thanks for the information\r\n\r\n@sachinprasadhs could you please look into this. Thank you.",
"I'm not entirely sure what you mean by dynamic shape. Your network has a fixed shape of [1, 1, 1, 3], no?\r\n\r\nAnyway, using the `SHAPE` op to extract the tensor dimensions and doing a runtime decision of what the tensor size should be is not supported. Things need to be statically assigned.",
"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.",
"@impjdi i don't know why it prints this shape in details, but if you run:\r\n```tf.lite.experimental.Analyzer.analyze(model_path=out_path, gpu_compatibility=True)```\r\non the model it will print:\r\n```\r\nYour TFLite model has '1' subgraph(s). In the subgraph description below,\r\nT# represents the Tensor numbers. For example, in Subgraph#0, the PAD op takes\r\ntensor #0 and tensor #3 as input and produces tensor #4 as output.\r\n\r\nSubgraph#0 main(T#0) -> [T#5]\r\n Op#0 PAD(T#0, T#3[0, 0, 1, 1, 1, ...]) -> [T#4]\r\n Op#1 CONV_2D(T#4, T#2, T#1) -> [T#5]\r\n\r\nTensors of Subgraph#0\r\n T#0(serving_default_image:0) shape_signature:[1, -1, -1, 3], type:FLOAT32\r\n T#1(convolution) shape:[3], type:FLOAT32 RO 12 bytes, buffer: 2, data:[0, 0, 0]\r\n T#2(convolution1) shape:[3, 3, 3, 3], type:FLOAT32 RO 324 bytes, buffer: 3, data:[0.0592289, -0.093541, 0.0682242, -0.0534223, -0.0468599, ...]\r\n T#3(Const) shape:[4, 2], type:INT32 RO 32 bytes, buffer: 4, data:[0, 0, 1, 1, 1, ...]\r\n T#4(Pad) shape_signature:[1, -1, -1, 3], type:FLOAT32\r\n T#5(PartitionedCall:0) shape_signature:[1, -1, -1, 3], type:FLOAT32\r\n\r\n\r\nYour model looks compatible with GPU delegate with TFLite runtime version 2.12.0.\r\nBut it doesn't guarantee that your model works well with GPU delegate.\r\nThere could be some runtime incompatibililty happen.\r\n```\r\n\r\nAs you can see the shape is `[1, -1, -1, 3]`. And it works when i resize tensors and pass input with different shapes.\r\n\r\nGot it about `SHAPE`. But is there any way to upscale without using `SHAPE`? Because `CONV2D` with stride 2 doesn't require `SHAPE` and it downsamples tensors. Is there any way to upscale it back?",
"Hi @Kepnu4, we currently do not support dynamic shapes. If it works, then trying to build on top of it will lead to issues down the road because the system doesn't expect that state. Are you able to continue your work with static shapes?",
"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/59911\">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/59911\">No</a>\n"
] | 2023-03-06T11:38:16 | 2023-08-11T18:00:48 | 2023-08-09T01:52:35 | NONE | null | null | null | Hello,
Resize OP doesn't work in Metal delegate with dynamic shape input in TFLite. Here is the small example of network which works on cpu but doesn't work with metal delegate with following error:
```
2023-03-06 15:01:06.317779+0400 TFLiteBenchmark[77147:6040306] Initialized TensorFlow Lite runtime.
INFO: Initialized TensorFlow Lite runtime.
2023-03-06 15:01:06.318869+0400 TFLiteBenchmark[77147:6040306] Created TensorFlow Lite delegate for Metal.
INFO: Created TensorFlow Lite delegate for Metal.
2023-03-06 15:01:06.320045+0400 TFLiteBenchmark[77147:6040306] Metal GPU Frame Capture Enabled
2023-03-06 15:01:06.322306+0400 TFLiteBenchmark[77147:6040306] Metal API Validation Enabled
INFO: GPU delegate created.
ERROR: Failed to apply GPU delegate.
```
Network graph:
<img width="344" alt="image" src="https://user-images.githubusercontent.com/2921717/223099424-03870ed2-16fc-4e67-a6d9-17ec2fe9c40f.png">
[test_net.tflite.zip](https://github.com/tensorflow/tensorflow/files/10897648/test_net.tflite.zip)
### System information
- **iOS 15.1**:
- **Iphone 11**:
- **source**:
- **v2.11.0**:
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59911/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59911/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59910 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59910/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59910/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59910/events | https://github.com/tensorflow/tensorflow/pull/59910 | 1,611,208,187 | PR_kwDOArmXAs5LW4bL | 59,910 | Update cmake version | {
"login": "ozichert",
"id": 38570014,
"node_id": "MDQ6VXNlcjM4NTcwMDE0",
"avatar_url": "https://avatars.githubusercontent.com/u/38570014?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ozichert",
"html_url": "https://github.com/ozichert",
"followers_url": "https://api.github.com/users/ozichert/followers",
"following_url": "https://api.github.com/users/ozichert/following{/other_user}",
"gists_url": "https://api.github.com/users/ozichert/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ozichert/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ozichert/subscriptions",
"organizations_url": "https://api.github.com/users/ozichert/orgs",
"repos_url": "https://api.github.com/users/ozichert/repos",
"events_url": "https://api.github.com/users/ozichert/events{/privacy}",
"received_events_url": "https://api.github.com/users/ozichert/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1173072136,
"node_id": "MDU6TGFiZWwxMTczMDcyMTM2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL",
"name": "size:XL",
"color": "adafea",
"default": false,
"description": "CL Change Size:Extra Large"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"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/59910/checks?check_run_id=11788987533) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request."
] | 2023-03-06T11:28:48 | 2023-03-06T11:30:58 | 2023-03-06T11:29:07 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59910",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59910",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59910.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59910.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59910/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59910/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59909 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59909/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59909/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59909/events | https://github.com/tensorflow/tensorflow/pull/59909 | 1,611,161,789 | PR_kwDOArmXAs5LWuLc | 59,909 | [Linaro:ARM_CI] Clean up exclude list for ARM64 builds | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-06T11:04:25 | 2023-04-12T16:07:44 | 2023-03-06T22:10:31 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59909",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59909",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59909.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59909.patch",
"merged_at": "2023-03-06T22:10:31"
} | Remove tests that now pass from list to exclude | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59909/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59909/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59908 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59908/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59908/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59908/events | https://github.com/tensorflow/tensorflow/issues/59908 | 1,611,072,663 | I_kwDOArmXAs5gBwSX | 59,908 | About fine-tune | {
"login": "panhu",
"id": 11703018,
"node_id": "MDQ6VXNlcjExNzAzMDE4",
"avatar_url": "https://avatars.githubusercontent.com/u/11703018?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/panhu",
"html_url": "https://github.com/panhu",
"followers_url": "https://api.github.com/users/panhu/followers",
"following_url": "https://api.github.com/users/panhu/following{/other_user}",
"gists_url": "https://api.github.com/users/panhu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/panhu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/panhu/subscriptions",
"organizations_url": "https://api.github.com/users/panhu/orgs",
"repos_url": "https://api.github.com/users/panhu/repos",
"events_url": "https://api.github.com/users/panhu/events{/privacy}",
"received_events_url": "https://api.github.com/users/panhu/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": 1093464312,
"node_id": "MDU6TGFiZWwxMDkzNDY0MzEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:others",
"name": "type:others",
"color": "159b2e",
"default": false,
"description": "issues not falling in bug, perfromance, support, build and install or feature"
},
{
"id": 4032183365,
"node_id": "LA_kwDOArmXAs7wVjxF",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9",
"name": "TF 2.9",
"color": "1CF842",
"default": false,
"description": "Issues found in the TF 2.9 release (or RCs)"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @panhu \r\n\r\nCan you provide more details regarding the issue?\r\n\r\nYou can replace layers in the middle of the model by layer assignment. \r\n\r\nPlease refer to the transfer learning and fine tuning [tutorial](https://www.tensorflow.org/guide/keras/transfer_learning#fine-tuning). Also, please refer to the colab [gist](https://colab.research.google.com/gist/pjpratik/251fa430aa21f7e641e1e2baadfe749a/transfer_learning.ipynb) for the same.\r\n\r\nThanks.",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"hello @panhu \r\nsteps to remove the middle layer in the transfer learning model.You can remove it using running a for loop and using pop function to remove up to whichever layer you want and then add any other middle layer. then you can freeze the weights of all layers except the middle layer. after that, you can easily compile and fit your model \r\n\r\nyou can refer to the following GitHub gist given below\r\n[githubgist](https://colab.research.google.com/gist/Chinmayadas2003/6875e84ee2c7558fcc9d2e0c1cdaac7a/removing-middle-layers-in-a-pretrained-model.ipynb#scrollTo=kKWSJJ-_wbZQ)",
"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/59908\">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/59908\">No</a>\n"
] | 2023-03-06T10:10:49 | 2023-04-01T01:54:10 | 2023-04-01T01:54:07 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Others
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
tf 2.9
### Custom Code
Yes
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
Hi:
How to replace several layers in the middle of the model during fine-tune?
Thanks
```
### Standalone code to reproduce the issue
```shell
How to replace several layers in the middle of the model during fine-tune?
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59908/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59908/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59907 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59907/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59907/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59907/events | https://github.com/tensorflow/tensorflow/pull/59907 | 1,611,031,800 | PR_kwDOArmXAs5LWSC1 | 59,907 | Prevent stale issues action from running in forks | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-06T09:47:10 | 2023-04-12T16:07:50 | 2023-03-07T19:16:38 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59907",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59907",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59907.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59907.patch",
"merged_at": "2023-03-07T19:16:38"
} | The action will fail when not run in the main repo causing unnecessary failure messages to be sent to fork owners so add the same protection as used in the other actions | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59907/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59907/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59906 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59906/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59906/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59906/events | https://github.com/tensorflow/tensorflow/issues/59906 | 1,610,968,540 | I_kwDOArmXAs5gBW3c | 59,906 | Resource exhausted error during training | {
"login": "DNJ-JINI",
"id": 67704244,
"node_id": "MDQ6VXNlcjY3NzA0MjQ0",
"avatar_url": "https://avatars.githubusercontent.com/u/67704244?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DNJ-JINI",
"html_url": "https://github.com/DNJ-JINI",
"followers_url": "https://api.github.com/users/DNJ-JINI/followers",
"following_url": "https://api.github.com/users/DNJ-JINI/following{/other_user}",
"gists_url": "https://api.github.com/users/DNJ-JINI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DNJ-JINI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DNJ-JINI/subscriptions",
"organizations_url": "https://api.github.com/users/DNJ-JINI/orgs",
"repos_url": "https://api.github.com/users/DNJ-JINI/repos",
"events_url": "https://api.github.com/users/DNJ-JINI/events{/privacy}",
"received_events_url": "https://api.github.com/users/DNJ-JINI/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": 3531398540,
"node_id": "LA_kwDOArmXAs7SfN2M",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.7",
"name": "TF 2.7",
"color": "77237D",
"default": false,
"description": "Issues related to TF 2.7.0"
}
] | 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 | [
"@DNJ-JINI,\r\nThis is not the issue from the Tensorflow side. In order to be able to offer computational resources at scale, Colab needs to maintain flexibility to adjust usage dynamically. Colab Pro subscribers have greater limits than the free version of Colab. You can read more at the FAQ: https://research.google.com/colaboratory/faq.html#resource-limits. \r\n\r\nPlease try to raise the issue on [Colab repo](https://github.com/googlecolab/colabtools) for better assistance. If you encounter this repeatedly, we'll need more information for the bug report. Please submit feedback within Colab at Help > Send feedback. 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/59906\">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/59906\">No</a>\n"
] | 2023-03-06T09:09:26 | 2023-03-23T01:55:10 | 2023-03-23T01:55:08 | NONE | null | null | null | Resource exhausted error during training
I would like to train the deep learning task semantic segmentation.
Specifications: model with 31 million parameters
image size ( minimum 1024x1024), batch size 256 framework -tensorflow keras 2.7
Total image samples 30,000,
Label Mask samples 30,000
Does colab pro plus allow the training for this specification with out OOM error?
Issue currently facing is even with 2000 number of images and 512x512 size for batch size 32 results in out of memory error in colab pro subscription.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59906/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59906/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59905 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59905/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59905/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59905/events | https://github.com/tensorflow/tensorflow/issues/59905 | 1,610,451,149 | I_kwDOArmXAs5f_YjN | 59,905 | Inexistant CUDA support for last version ? | {
"login": "TheHellTower",
"id": 119943599,
"node_id": "U_kgDOByYxrw",
"avatar_url": "https://avatars.githubusercontent.com/u/119943599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TheHellTower",
"html_url": "https://github.com/TheHellTower",
"followers_url": "https://api.github.com/users/TheHellTower/followers",
"following_url": "https://api.github.com/users/TheHellTower/following{/other_user}",
"gists_url": "https://api.github.com/users/TheHellTower/gists{/gist_id}",
"starred_url": "https://api.github.com/users/TheHellTower/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TheHellTower/subscriptions",
"organizations_url": "https://api.github.com/users/TheHellTower/orgs",
"repos_url": "https://api.github.com/users/TheHellTower/repos",
"events_url": "https://api.github.com/users/TheHellTower/events{/privacy}",
"received_events_url": "https://api.github.com/users/TheHellTower/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 1188421838,
"node_id": "MDU6TGFiZWwxMTg4NDIxODM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows",
"name": "subtype:windows",
"color": "b619ea",
"default": false,
"description": "Windows Build/Installation Issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
},
{
"id": 5244472328,
"node_id": "LA_kwDOArmXAs8AAAABOJhMCA",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:cpu-intel",
"name": "subtype:cpu-intel",
"color": "507561",
"default": false,
"description": "To track windows cpu issues"
}
] | open | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@TheHellTower \r\nTensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting with TensorFlow 2.11, you will need to install TensorFlow in WSL2 for GPU support. Could you please refer to the [doc](https://tensorflow.org/install/pip#windows-wsl2) for reference.\r\n\r\nThank you !",
"> @TheHellTower TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting with TensorFlow 2.11, you will need to install TensorFlow in WSL2 for GPU support. Could you please refer to the [doc](https://tensorflow.org/install/pip#windows-wsl2) for reference.\r\n> \r\n> Thank you !\r\n\r\nThe problem is I'm building the project on `Windows` with `Visual Studio` for `Windows` so it's not possible anymore ? Can I even build the project from `Windows` for `Linux` ?\r\nThis is not practical at all, why the support got dropped ?",
"@TheHellTower \r\nSorry for the late reply, Unfortunately from TF 2.11 is not supported for GPU pip installation. If you want GPU support for windows try to build from source. Please refer to [Build from source on Windows](https://www.tensorflow.org/install/source_windows) for reference.\r\n\r\nThank you!",
"> @TheHellTower Sorry for the late reply, Unfortunately from TF 2.11 is not supported for GPU pip installation. If you want GPU support for windows try to build from source. Please refer to [Build from source on Windows](https://www.tensorflow.org/install/source_windows) for reference.\r\n> \r\n> Thank you!\r\n\r\nHello,\r\n\r\nFirst of all I'm not using `Python` I want to use `C++`, then you said GPU support is not in 2.11 \"`TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows`\" so it would be useless for me to build from source ? I was enthusiastic and excited by the idea of using Tensorflow until I see that I can't even make my project with the 2.10 version it doesn't seem to work as intented (it was crashing).\r\n\r\nIf in C++ the GPU support is still there then I woud love to know how to get it on my side because I really need it I can't waste time with CPU it's way too long next to GPU...\r\n\r\nAnd like I can see [here](https://www.tensorflow.org/install/lang_c) \"`Caution: TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows.`\"\r\n\r\nRegards.",
"Well hopefully you will not avoid the issue just like this and will give a answer at some point.",
"Hi, @SuryanarayanaY \r\n\r\nCould you please take look into this issue? Thank you!",
"Hi @TheHellTower ,\r\n\r\nWith Windows if you want to enable GPU support for Tf>2.10 versions, you can try DirectML Plugin option. Please refer the source [here](https://github.com/microsoft/tensorflow-directml-plugin#windows-10) and follow the instructions mentioned there.\r\n\r\nThe requirement should be:\r\n\r\n\r\n```\r\n- Windows 10 Version 1709, 64-bit (Build 16299 or higher)\r\n- Python x86-64 3.8, 3.9, 3.10 or 3.111\r\n- One of the following supported GPUs:\r\n AMD Radeon R5/R7/R9 2xx series or newer\r\n Intel HD Graphics 5xx or newer\r\n NVIDIA GeForce GTX 9xx series GPU or newer\r\n \r\n```\r\n\r\nIf you want to go with TF=2.10v only then you might need to install tensorflow first and then reinstall again with TF==2.10v.\r\n\r\nIncase of any problem with DirectML plugin please let us know.\r\n\r\nThanks!",
"> Hi @TheHellTower ,\r\n> \r\n> With Windows if you want to enable GPU support for Tf>2.10 versions, you can try DirectML Plugin option. Please refer the source [here](https://github.com/microsoft/tensorflow-directml-plugin#windows-10) and follow the instructions mentioned there.\r\n> \r\n> The requirement should be:\r\n> \r\n> ```\r\n> - Windows 10 Version 1709, 64-bit (Build 16299 or higher)\r\n> - Python x86-64 3.8, 3.9, 3.10 or 3.111\r\n> - One of the following supported GPUs:\r\n> AMD Radeon R5/R7/R9 2xx series or newer\r\n> Intel HD Graphics 5xx or newer\r\n> NVIDIA GeForce GTX 9xx series GPU or newer\r\n> \r\n> ```\r\n> \r\n> If you want to go with TF=2.10v only then you might need to install tensorflow first and then reinstall again with TF==2.10v.\r\n> \r\n> Incase of any problem with DirectML plugin please let us know.\r\n> \r\n> Thanks!\r\n\r\nIsn't it for the Python bindings ? I need GPU support using C++ I'm writing my project in C++.",
"Hi @TheHellTower ,\r\n\r\nIf you want GPU support with C++ then you need to go with tensorflow version 2.10 only using c-lang bindings [here](https://www.tensorflow.org/install/lang_c). For more details on this please refer this [source](https://github.com/tensorflow/docs/blob/master/site/en/r1/guide/extend/bindings.md).\r\n\r\nPlease note that there are some limitations in this bindings like mentioned below.\r\n\r\n<img width=\"1103\" alt=\"Screenshot 2023-03-18 at 7 49 06 PM\" src=\"https://user-images.githubusercontent.com/116063290/226111774-4df3d840-9d09-4405-a5fe-4858de52d2b3.png\">\r\n\r\n",
"> Hi @TheHellTower ,\r\n> \r\n> If you want GPU support with C++ then you need to go with tensorflow version 2.10 only using c-lang bindings [here](https://www.tensorflow.org/install/lang_c). For more details on this please refer this [source](https://github.com/tensorflow/docs/blob/master/site/en/r1/guide/extend/bindings.md).\r\n> \r\n> Please note that there are some limitations in this bindings like mentioned below.\r\n> \r\n> <img alt=\"Screenshot 2023-03-18 at 7 49 06 PM\" width=\"1103\" src=\"https://user-images.githubusercontent.com/116063290/226111774-4df3d840-9d09-4405-a5fe-4858de52d2b3.png\">\r\n\r\nI think the support should be added back. See Issue #59918 that list 7 issues including this one about GPU support on Windows, It's very important for my project to be on the last version and I can't even use it and in 2.10 it doesn't work at all for some strange reasons.",
"Bump.",
"Hi @TheHellTower ,\r\n\r\nWith the inclusion of WSL,it will be comparatively easy to maintain the framework for both Linux and Windows.\r\nHere is the [link](https://blog.tensorflow.org/2022/09/announcing-tensorflow-official-build-collaborators.html) to the announcement blog which talks about official build collaborators.\r\n\r\nPlease refer to the Developer [comment](https://github.com/tensorflow/tensorflow/issues/59828#issuecomment-1454041070) related to drop of GPU support. \r\n\r\n\r\n\r\n\r\n",
"> Hi @TheHellTower ,\r\n> \r\n> With the inclusion of WSL,it will be comparatively easy to maintain the framework for both Linux and Windows. Here is the [link](https://blog.tensorflow.org/2022/09/announcing-tensorflow-official-build-collaborators.html) to the announcement blog which talks about official build collaborators.\r\n> \r\n> Please refer to the Developer [comment](https://github.com/tensorflow/tensorflow/issues/59828#issuecomment-1454041070) related to drop of GPU support.\r\n\r\nhttps://github.com/tensorflow/tensorflow/issues/59918#issuecomment-1500529192",
"> @TheHellTower Sorry for the late reply, Unfortunately from TF 2.11 is not supported for GPU pip installation. If you want GPU support for windows try to build from source. Please refer to [Build from source on Windows](https://www.tensorflow.org/install/source_windows) for reference.\r\n> \r\n> Thank you!\r\n\r\n@tiruk007 Hello, I tried building tf2.11 from source on Windows and it failed. I can't find the solution for the error in existing issues. May I ask that whether tensorflow developers already tried building from source on Windows since tf2.11 and succeeded? I'd like to build from source to use GPU for native-windows on tf2.11 and higher. However, if that means I need to modify the C++ code to make the build successful, the price is just too high.\r\n\r\nThe main part of error is listed below:\r\n```\r\n.\\tensorflow/core/kernels/segment_reduction_ops_gpu.cu.h(206): error: no suitable constructor exists to convert from \"int\" to \"tensorflow::AlignedVector<int, 4>\"\r\n detected during:\r\n instantiation of \"void tensorflow::SegmentOffsetsKernel(Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=int]\"\r\n(233): here\r\n instantiation of \"tsl::Status tensorflow::LaunchSegmentOffsetsKernel(const tensorflow::GPUDevice &, Tindex, Tsegmentids, const Tsegmentids *, Tindex *) [with Tindex=int, Tsegmentids=int]\"\r\n(570): here\r\n instantiation of \"tsl::Status tensorflow::SegmentReduceGPUImpl<Treducevec,Tvec,Tindex,Tsegmentids,ReduceOp,Tinit>(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp, Tinit, Tinit, __nv_bool, __nv_bool, const Tvec *, const Tsegmentids *, const Tindex *, const Tinit *, Tvec *) [with Treducevec=tensorflow::AlignedVector<int, 4>, Tvec=tensorflow::AlignedVector<int, 4>, Tindex=int, Tsegmentids=int, ReduceOp=tensorflow::functor::Max, Tinit=int]\"\r\n(617): here\r\n instantiation of \"tsl::Status tensorflow::SegmentReduceGPUVectorized<Treduce>::Impl<vec_size>::operator()(tensorflow::OpKernelContext *, Tindex, Tindex, Tsegmentids, ReduceOp, T, T, __nv_bool, __nv_bool, const T *, const Tsegmentids *, const Tindex *, const T *, T *) [with Treduce=tsl::int32, vec_size=4, T=int, Tindex=int, Tsegmentids=int, ReduceOp=tensorflow::functor::Max]\"\r\n.\\tensorflow/core/util/gpu_kernel_helper.h(328): here\r\n instantiation of \"tsl::Status tensorflow::detail::DispatchToVectorizedHelper<VecSize, Functor>::operator()(int64_t, Args &&...) const [with VecSize=4LL, Functor=tensorflow::SegmentReduceGPUVectorized<tsl::int32>::Impl, Args=<tensorflow::OpKernelContext *&, int &, int &, int &, tensorflow::functor::Max &, int &, int &, __nv_bool &, __nv_bool &, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, const tsl::int32 *&, tsl::int32 *&>]\"\r\n\r\n```",
"@mraunak Could you please take a look?",
"Hey @learning-to-play this is the Intel TF Windows account. Is it possible to tag this account or does it need to be added? - Rajeev & Mayank",
"@intel-tf-windows It seems I can now.\r\n@sachinprasadhs Thank you for assigning the issue!",
"Hi @learning-to-play, I think TensorFlow GPU or Nvidia Team would be able to resolve this issue as the errors involve CUDA files",
"Thank you @mraunak!",
"News ?",
"Some references that may be helpful:\r\n- See section \"Expanded GPU support on Windows\" in [this TensorFlow blog post](https://blog.tensorflow.org/2022/09/whats-new-in-tensorflow-210.html).\r\n- See [TensorFlow install page](https://www.tensorflow.org/install/pip) and [this page](https://learn.microsoft.com/en-us/windows/ai/directml/gpu-tensorflow-plugin).\r\n",
"> Some references that may be helpful:\r\n> \r\n> * See section \"Expanded GPU support on Windows\" in [this TensorFlow blog post](https://blog.tensorflow.org/2022/09/whats-new-in-tensorflow-210.html).\r\n> * See [TensorFlow install page](https://www.tensorflow.org/install/pip) and [this page](https://learn.microsoft.com/en-us/windows/ai/directml/gpu-tensorflow-plugin).\r\n\r\nNo it's not okay for me because:\r\n- https://github.com/tensorflow/tensorflow/issues/59905#issuecomment-1474398835\r\n- https://github.com/tensorflow/tensorflow/issues/59905#issuecomment-1474864649",
"Bump",
"Bump",
"Bump",
"You can never wake up a bunch of people pretending to be asleep",
"> You can never wake up a bunch of people pretending to be asleep\r\n\r\nDoesn't matter I have the time lol",
"Bump",
"@TheHellTower Unfortunately as mentioned in [this comment](https://github.com/tensorflow/tensorflow/issues/59905#issuecomment-1457386002) GPU on native-Windows isn't supported."
] | 2023-03-06T00:07:38 | 2023-08-15T06:24:33 | null | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Feature Request
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
tf 2.11
### Custom Code
No
### OS Platform and Distribution
Windows 10 (Build 19045.2673)
### Mobile device
_No response_
### Python version
3.11
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
11.0.2
### GPU model and memory
_No response_
### Current Behaviour?
```shell
In the last version of Tensorflow it is saying the support for CUDA on Windows is kinda dropped ?
Is it possible to put it back ? I can't make a code work on a older version of Tensorflow and I want to use GPU processing to loose lowest amount of time possible..
```
### Standalone code to reproduce the issue
```shell
It's on configuration.
```
### Relevant log output
```shell
None
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59905/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 1,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59905/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59904 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59904/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59904/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59904/events | https://github.com/tensorflow/tensorflow/pull/59904 | 1,610,355,726 | PR_kwDOArmXAs5LUApM | 59,904 | Include Tensorflow Forum in Contribution guidelines | {
"login": "SamQxd",
"id": 97397197,
"node_id": "U_kgDOBc4pzQ",
"avatar_url": "https://avatars.githubusercontent.com/u/97397197?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SamQxd",
"html_url": "https://github.com/SamQxd",
"followers_url": "https://api.github.com/users/SamQxd/followers",
"following_url": "https://api.github.com/users/SamQxd/following{/other_user}",
"gists_url": "https://api.github.com/users/SamQxd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SamQxd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SamQxd/subscriptions",
"organizations_url": "https://api.github.com/users/SamQxd/orgs",
"repos_url": "https://api.github.com/users/SamQxd/repos",
"events_url": "https://api.github.com/users/SamQxd/events{/privacy}",
"received_events_url": "https://api.github.com/users/SamQxd/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).\n\nView this [failed invocation](https://github.com/tensorflow/tensorflow/pull/59904/checks?check_run_id=11776460898) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request."
] | 2023-03-05T20:41:29 | 2023-03-16T16:53:42 | 2023-03-05T20:49:30 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59904",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59904",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59904.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59904.patch",
"merged_at": null
} | ? | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59904/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59904/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59903 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59903/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59903/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59903/events | https://github.com/tensorflow/tensorflow/pull/59903 | 1,610,353,098 | PR_kwDOArmXAs5LUAI3 | 59,903 | R2.11 | {
"login": "SamQxd",
"id": 97397197,
"node_id": "U_kgDOBc4pzQ",
"avatar_url": "https://avatars.githubusercontent.com/u/97397197?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SamQxd",
"html_url": "https://github.com/SamQxd",
"followers_url": "https://api.github.com/users/SamQxd/followers",
"following_url": "https://api.github.com/users/SamQxd/following{/other_user}",
"gists_url": "https://api.github.com/users/SamQxd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SamQxd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SamQxd/subscriptions",
"organizations_url": "https://api.github.com/users/SamQxd/orgs",
"repos_url": "https://api.github.com/users/SamQxd/repos",
"events_url": "https://api.github.com/users/SamQxd/events{/privacy}",
"received_events_url": "https://api.github.com/users/SamQxd/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1173072136,
"node_id": "MDU6TGFiZWwxMTczMDcyMTM2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL",
"name": "size:XL",
"color": "adafea",
"default": false,
"description": "CL Change Size:Extra Large"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"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/59903/checks?check_run_id=11776404720) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request."
] | 2023-03-05T20:33:22 | 2023-03-05T20:36:29 | 2023-03-05T20:36:26 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59903",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59903",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59903.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59903.patch",
"merged_at": null
} | . | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59903/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59903/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59902 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59902/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59902/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59902/events | https://github.com/tensorflow/tensorflow/issues/59902 | 1,610,332,442 | I_kwDOArmXAs5f-7ka | 59,902 | how to convert tensorflow lite using yolov6 .pt file ? | {
"login": "abhishekbj97",
"id": 72755648,
"node_id": "MDQ6VXNlcjcyNzU1NjQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/72755648?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/abhishekbj97",
"html_url": "https://github.com/abhishekbj97",
"followers_url": "https://api.github.com/users/abhishekbj97/followers",
"following_url": "https://api.github.com/users/abhishekbj97/following{/other_user}",
"gists_url": "https://api.github.com/users/abhishekbj97/gists{/gist_id}",
"starred_url": "https://api.github.com/users/abhishekbj97/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/abhishekbj97/subscriptions",
"organizations_url": "https://api.github.com/users/abhishekbj97/orgs",
"repos_url": "https://api.github.com/users/abhishekbj97/repos",
"events_url": "https://api.github.com/users/abhishekbj97/events{/privacy}",
"received_events_url": "https://api.github.com/users/abhishekbj97/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 2788658540,
"node_id": "MDU6TGFiZWwyNzg4NjU4NTQw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-support",
"name": "comp:lite-support",
"color": "4A5F20",
"default": false,
"description": "Lite support library related issues"
}
] | closed | false | {
"login": "synandi",
"id": 98147397,
"node_id": "U_kgDOBdmcRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/synandi",
"html_url": "https://github.com/synandi",
"followers_url": "https://api.github.com/users/synandi/followers",
"following_url": "https://api.github.com/users/synandi/following{/other_user}",
"gists_url": "https://api.github.com/users/synandi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/synandi/subscriptions",
"organizations_url": "https://api.github.com/users/synandi/orgs",
"repos_url": "https://api.github.com/users/synandi/repos",
"events_url": "https://api.github.com/users/synandi/events{/privacy}",
"received_events_url": "https://api.github.com/users/synandi/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "synandi",
"id": 98147397,
"node_id": "U_kgDOBdmcRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/synandi",
"html_url": "https://github.com/synandi",
"followers_url": "https://api.github.com/users/synandi/followers",
"following_url": "https://api.github.com/users/synandi/following{/other_user}",
"gists_url": "https://api.github.com/users/synandi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/synandi/subscriptions",
"organizations_url": "https://api.github.com/users/synandi/orgs",
"repos_url": "https://api.github.com/users/synandi/repos",
"events_url": "https://api.github.com/users/synandi/events{/privacy}",
"received_events_url": "https://api.github.com/users/synandi/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"There is a problem in converting of file (unsupported format) using tf 2x version.\r\nhow to convert pytorch model (.pt) files to tflite for YOLOv6 ? ",
"Hi @abhishekbj97, Kindly let us know the steps you have followed to convert a pytorch model to tflite for better assistance.\r\n\r\nConverting a PyTorch model (.pt) file to TFLite for YOLOv6 involves several steps.\r\n\r\n1. Convert the PyTorch model to ONNX format using the `torch.onnx` module. \r\n2. Convert the ONNX model to TensorFlow format using the `onnx-tf` converter.\r\n3. Convert the TensorFlow model to TFLite format using the TensorFlow Lite Converter.\r\n4. Finally, test your TFLite model to make sure it is working correctly. You can use the TFLite interpreter to do this.\r\nThank you!",
"Thank you for your response,\r\nit's working now "
] | 2023-03-05T19:37:38 | 2023-03-09T09:27:42 | 2023-03-09T09:27:42 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
- TensorFlow installation (pip package or built from source):
- TensorFlow library (version, if pip package or github SHA, if built from source):
### 2. Code
Provide code to help us reproduce your issues using one of the following options:
#### Option A: Reference colab notebooks
1) Reference [TensorFlow Model Colab](https://colab.research.google.com/gist/ymodak/e96a4270b953201d5362c61c1e8b78aa/tensorflow-datasets.ipynb?authuser=1): Demonstrate how to build your TF model.
2) Reference [TensorFlow Lite Model Colab](https://colab.research.google.com/gist/ymodak/0dfeb28255e189c5c48d9093f296e9a8/tensorflow-lite-debugger-colab.ipynb): Demonstrate how to convert your TF model to a TF Lite model (with quantization, if used) and run TFLite Inference (if possible).
```
(You can paste links or attach files by dragging & dropping them below)
- Provide links to your updated versions of the above two colab notebooks.
- Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model.
```
#### Option B: Paste your code here or provide a link to a custom end-to-end colab
```
(You can paste links or attach files by dragging & dropping them below)
- Include code to invoke the TFLite Converter Python API and the errors.
- Provide links to your TensorFlow model and (optionally) TensorFlow Lite Model.
```
### 3. Failure after conversion
If the conversion is successful, but the generated model is wrong, then state what is wrong:
- Model produces wrong results and/or has lesser accuracy.
- Model produces correct results, but it is slower than expected.
### 4. (optional) RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
### 5. (optional) Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59902/reactions",
"total_count": 1,
"+1": 0,
"-1": 1,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59902/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59901 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59901/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59901/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59901/events | https://github.com/tensorflow/tensorflow/pull/59901 | 1,610,257,606 | PR_kwDOArmXAs5LTtXx | 59,901 | Update android audio classifier reference app URL | {
"login": "chunduriv",
"id": 74177924,
"node_id": "MDQ6VXNlcjc0MTc3OTI0",
"avatar_url": "https://avatars.githubusercontent.com/u/74177924?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chunduriv",
"html_url": "https://github.com/chunduriv",
"followers_url": "https://api.github.com/users/chunduriv/followers",
"following_url": "https://api.github.com/users/chunduriv/following{/other_user}",
"gists_url": "https://api.github.com/users/chunduriv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chunduriv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chunduriv/subscriptions",
"organizations_url": "https://api.github.com/users/chunduriv/orgs",
"repos_url": "https://api.github.com/users/chunduriv/repos",
"events_url": "https://api.github.com/users/chunduriv/events{/privacy}",
"received_events_url": "https://api.github.com/users/chunduriv/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-05T16:04:57 | 2023-03-16T16:53:40 | 2023-03-09T17:10:30 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59901",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59901",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59901.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59901.patch",
"merged_at": "2023-03-09T17:10:29"
} | Update android audio classifier reference app URL | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59901/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59901/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59900 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59900/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59900/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59900/events | https://github.com/tensorflow/tensorflow/issues/59900 | 1,610,111,427 | I_kwDOArmXAs5f-FnD | 59,900 | Outdated example | {
"login": "TheHellTower",
"id": 119943599,
"node_id": "U_kgDOByYxrw",
"avatar_url": "https://avatars.githubusercontent.com/u/119943599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TheHellTower",
"html_url": "https://github.com/TheHellTower",
"followers_url": "https://api.github.com/users/TheHellTower/followers",
"following_url": "https://api.github.com/users/TheHellTower/following{/other_user}",
"gists_url": "https://api.github.com/users/TheHellTower/gists{/gist_id}",
"starred_url": "https://api.github.com/users/TheHellTower/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TheHellTower/subscriptions",
"organizations_url": "https://api.github.com/users/TheHellTower/orgs",
"repos_url": "https://api.github.com/users/TheHellTower/repos",
"events_url": "https://api.github.com/users/TheHellTower/events{/privacy}",
"received_events_url": "https://api.github.com/users/TheHellTower/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 284443156,
"node_id": "MDU6TGFiZWwyODQ0NDMxNTY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:docs-bug",
"name": "type:docs-bug",
"color": "159b2e",
"default": false,
"description": "Document issues"
},
{
"id": 1097545817,
"node_id": "MDU6TGFiZWwxMDk3NTQ1ODE3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:apis",
"name": "comp:apis",
"color": "0052cc",
"default": false,
"description": "Highlevel API related issues"
}
] | closed | false | {
"login": "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 | [
"@TheHellTower,\r\nThank you for reporting the doc issue. Could you please feel free to submit a PR for the requested change or share the code of the example where the requested change is to be made. Thank you!",
"> @TheHellTower, Thank you for reporting the doc issue. Could you please feel free to submit a PR for the requested change or share the code of the example where the requested change is to be made. Thank you!\r\n\r\nHello, I don't have the updated code I opened a issue for a problem I got [here](https://github.com/tensorflow/tensorflow/issues/59905), it was just to know if it will be updated at some point or if I need to wait my problem to be solved to write myself a code and open a PR ?",
"Well this one is not important I will focus on #59905.",
"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/59900\">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/59900\">No</a>\n",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59900\">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/59900\">No</a>\n",
"It didn't solve this issue @pjpratik, if you read betterI pointed out the [C example](https://github.com/tensorflow/tensorflow/blob/v2.10.0/tensorflow/examples/label_image/main.cc)",
"Hi @TheHellTower, sorry for the inconvenience. \r\n\r\nWe are working on the C example as well. \r\n\r\nPlease feel free to raise a PR if you have the updated code implementation available. ",
"> Hi @TheHellTower, sorry for the inconvenience.\r\n> \r\n> We are working on the C example as well.\r\n> \r\n> Please feel free to raise a PR if you have the updated code implementation available.\r\n\r\nI wanted to update it accordingly to TF 2.11 but I can't use it, see #59905 👌 ",
"Hi @TheHellTower \r\n\r\nWe have tested the [example](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/label_image) on TF docker with 2.13 version and observed the example gives the expected output. Please find the logs below\r\n\r\n```\r\ntf-docker /tf/tensorflow > wget https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz \r\n--2023-03-29 06:36:03-- https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz\r\nResolving storage.googleapis.com (storage.googleapis.com)... 172.253.63.128, 142.250.31.128, 142.251.111.128, ...\r\nConnecting to storage.googleapis.com (storage.googleapis.com)|172.253.63.128|:443... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 88668554 (85M) [application/gzip]\r\nSaving to: 'inception_v3_2016_08_28_frozen.pb.tar.gz'\r\n \r\ninception_v3_2016_08_28_frozen.pb.tar.g 100%[=============================================================================>] 84.56M 99.5MB/s in 0.8s \r\n \r\n2023-03-29 06:36:04 (99.5 MB/s) - 'inception_v3_2016_08_28_frozen.pb.tar.gz' saved [88668554/88668554]\r\n \r\ntf-docker /tf/tensorflow > tar -xvpzf inception_v3_2016_08_28_frozen.pb.tar.gz -C tensorflow/examples/label_image/data --numeric-owner\r\ninception_v3_2016_08_28_frozen.pb\r\nimagenet_slim_labels.txt\r\ntf-docker /tf/tensorflow > ls tensorflow/examples/label_image/data \r\ngrace_hopper.jpg imagenet_slim_labels.txt inception_v3_2016_08_28_frozen.pb\r\ntf-docker /tf/tensorflow > bazel-bin/tensorflow/examples/label_image/label_image\r\n2023-03-29 06:48:48.658334: 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: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n2023-03-29 06:48:51.529578: I tensorflow/examples/label_image/main.cc:252] military uniform (653): 0.834306\r\n2023-03-29 06:48:51.529646: I tensorflow/examples/label_image/main.cc:252] mortarboard (668): 0.0218695\r\n2023-03-29 06:48:51.529663: I tensorflow/examples/label_image/main.cc:252] academic gown (401): 0.0103581\r\n2023-03-29 06:48:51.529676: I tensorflow/examples/label_image/main.cc:252] pickelhaube (716): 0.00800816\r\n2023-03-29 06:48:51.529694: I tensorflow/examples/label_image/main.cc:252] bulletproof vest (466): 0.00535087\r\ntf-docker /tf > python -c \"import tensorflow as tf; print(tf.__version__)\"\r\n2023-03-29 05:27:29.371380: 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\n2.13.0\r\n```\r\n\r\nCan you please let us know if there is any help we can provide on running the example?\r\n\r\nThanks.\r\n\r\n\r\n",
"> Hi @TheHellTower\r\n> \r\n> We have tested the [example](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/label_image) on TF docker with 2.13 version and observed the example gives the expected output. Please find the logs below\r\n> \r\n> ```\r\n> tf-docker /tf/tensorflow > wget https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz \r\n> --2023-03-29 06:36:03-- https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz\r\n> Resolving storage.googleapis.com (storage.googleapis.com)... 172.253.63.128, 142.250.31.128, 142.251.111.128, ...\r\n> Connecting to storage.googleapis.com (storage.googleapis.com)|172.253.63.128|:443... connected.\r\n> HTTP request sent, awaiting response... 200 OK\r\n> Length: 88668554 (85M) [application/gzip]\r\n> Saving to: 'inception_v3_2016_08_28_frozen.pb.tar.gz'\r\n> \r\n> inception_v3_2016_08_28_frozen.pb.tar.g 100%[=============================================================================>] 84.56M 99.5MB/s in 0.8s \r\n> \r\n> 2023-03-29 06:36:04 (99.5 MB/s) - 'inception_v3_2016_08_28_frozen.pb.tar.gz' saved [88668554/88668554]\r\n> \r\n> tf-docker /tf/tensorflow > tar -xvpzf inception_v3_2016_08_28_frozen.pb.tar.gz -C tensorflow/examples/label_image/data --numeric-owner\r\n> inception_v3_2016_08_28_frozen.pb\r\n> imagenet_slim_labels.txt\r\n> tf-docker /tf/tensorflow > ls tensorflow/examples/label_image/data \r\n> grace_hopper.jpg imagenet_slim_labels.txt inception_v3_2016_08_28_frozen.pb\r\n> tf-docker /tf/tensorflow > bazel-bin/tensorflow/examples/label_image/label_image\r\n> 2023-03-29 06:48:48.658334: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\n> To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n> 2023-03-29 06:48:51.529578: I tensorflow/examples/label_image/main.cc:252] military uniform (653): 0.834306\r\n> 2023-03-29 06:48:51.529646: I tensorflow/examples/label_image/main.cc:252] mortarboard (668): 0.0218695\r\n> 2023-03-29 06:48:51.529663: I tensorflow/examples/label_image/main.cc:252] academic gown (401): 0.0103581\r\n> 2023-03-29 06:48:51.529676: I tensorflow/examples/label_image/main.cc:252] pickelhaube (716): 0.00800816\r\n> 2023-03-29 06:48:51.529694: I tensorflow/examples/label_image/main.cc:252] bulletproof vest (466): 0.00535087\r\n> tf-docker /tf > python -c \"import tensorflow as tf; print(tf.__version__)\"\r\n> 2023-03-29 05:27:29.371380: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\r\n> To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\r\n> 2.13.0\r\n> ```\r\n> \r\n> Can you please let us know if there is any help we can provide on running the example?\r\n> \r\n> Thanks.\r\n\r\nOh okay I just got it, these examples are aiming Linux right ?",
"I think it is so I will close this issue it's not a important one.",
"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/59900\">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/59900\">No</a>\n"
] | 2023-03-05T08:54:26 | 2023-04-04T23:20:20 | 2023-04-04T23:20:17 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Others
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
tf 2.6.0
### Custom Code
No
### OS Platform and Distribution
Windows 10 (Build 19045.2673)
### Mobile device
_No response_
### Python version
3.11
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
11.0.2
### GPU model and memory
_No response_
### Current Behaviour?
[label image example](https://github.com/tensorflow/tensorflow/blob/v2.10.0/tensorflow/examples/label_image/main.cc) is outdated
### Standalone code to reproduce the issue
```shell
Not applicable.
```
### Relevant log output
```shell
Not applicable.
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59900/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59900/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59899 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59899/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59899/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59899/events | https://github.com/tensorflow/tensorflow/issues/59899 | 1,610,106,023 | I_kwDOArmXAs5f-ESn | 59,899 | Getting error when calculating entropy for each images in the batch in the input tensor in a custom layer in tensorflow/Keras. | {
"login": "DeveshS215",
"id": 127013167,
"node_id": "U_kgDOB5IRLw",
"avatar_url": "https://avatars.githubusercontent.com/u/127013167?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DeveshS215",
"html_url": "https://github.com/DeveshS215",
"followers_url": "https://api.github.com/users/DeveshS215/followers",
"following_url": "https://api.github.com/users/DeveshS215/following{/other_user}",
"gists_url": "https://api.github.com/users/DeveshS215/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DeveshS215/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeveshS215/subscriptions",
"organizations_url": "https://api.github.com/users/DeveshS215/orgs",
"repos_url": "https://api.github.com/users/DeveshS215/repos",
"events_url": "https://api.github.com/users/DeveshS215/events{/privacy}",
"received_events_url": "https://api.github.com/users/DeveshS215/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 4511033337,
"node_id": "LA_kwDOArmXAs8AAAABDODn-Q",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10",
"name": "TF 2.10",
"color": "C15088",
"default": false,
"description": ""
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@DeveshS215,\r\nI tried to execute the mentioned code and it was failing due to `SyntaxError: invalid syntax`. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/3aa1a8e614f036fa0e5dba1798617a1c/untitled1013.ipynb) and provide the complete code or the colab gist you are using. Thank you!",
"@tilakrayal,\r\n\r\nThank you.\r\n\r\nI have provided the full code and remove that syntax error. The collab gist is [here](https://colab.research.google.com/gist/DeveshS215/cf9ede0d4bc127749a1b01a120eb961a/untitled1013.ipynb).",
"@DeveshS215,\r\n\r\nApologies for the delay.Thank you for opening this issue. Development of keras moved to another [repository](https://github.com/keras-team/keras/issues). \r\n\r\nCould you please post this issue on keras-team/keras [repo](https://github.com/keras-team/keras/issues).\r\nTo know more please refer:\r\nhttps://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999\r\nThank you!\r\n",
"@tilakrayal \r\nI have posted on keras repo.",
"@DeveshS215,\r\nCould you please feel free to move this issue to closed status, so that we can track the issue there. 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/59899\">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/59899\">No</a>\n"
] | 2023-03-05T08:33:57 | 2023-03-16T17:44:50 | 2023-03-16T17:44:47 | NONE | null | null | null | I am working on a problem in which I have to create a custom layer in keras, which takes, output of a conv layer of a pre-trained model as an input. This custom layer work is to select K best feature maps based on shannon entropy for each images in that input tensor and then outputs the final tensor with k feature maps or each images. So that this output tensor is passed to other conv layer in the model.
Let input tensor from a conv layer has shape = (None, 224,224, 128) and I want to take 64 best feature maps out of 128 based on shannon entropy . So the output tensor shape should be = (None, 224,224, 64).
----------------------------------
System Informations:
python version = '3.9.12'
tensorflow version = `'2.10.0'`
Platform = Windows 11
Running on CPU
---------------------------------
Below is the code snippet :
`
class select_k_fmap(tf.keras.layers.Layer):
def __init__(self):
super(select_k_fmap, self).__init__()
def build(self, input_shape):
pass
def call(self, inputs):
"""
tensor shape = (batch_size, img_height, img_width, no. of filters)
"""
shape = tf.shape(inputs)
batch_size = shape[0]
print('batch size **** ', batch_size)
num_filters = shape[-1]
img_height = shape[1]
img_width = shape[2]
k = 4 # no. of best feature maps to select
def k_best_fmap(image):
"""
returns k best feature maps of an image having n feature maps
"""
def shannon_entropy(feature_map):
"""
returns entropy of a image in a input batch
"""
value_ranges = [0.0, 1.0]
nbins = 256
histogram_bin_indexes = tf.histogram_fixed_width_bins(image, value_ranges, nbins)
_, _, count = tf.unique_with_counts(histogram_bin_indexes)
prob = count/tf.reduce_sum(count)
prob = tf.cast(prob, tf.float32)
entropy = (-tf.reduce_sum(prob * tf.math.log(prob)))/(tf.math.log(2.0))
return entropy
final_image = tf.zeros_like(image) #shape = (img_height, img_width, no. of filters)
entropy = []
num_featuremaps = tf.shape(image)[-1]
for j in range(int(num_featuremaps)):
image_ith_filter = image[:,:,j]
image_ith_filter_entropy = shannon_entropy(image_ith_filter)
entropy.append(tf.get_static_value(image_ith_filter_entropy).item())
entropy_array = tf.argsort(entropy, direction='DESCENDING')
k_best_entropy_sort_index = tf.get_static_value(entropy_sort_index[:k]).tolist()
for index, element in enumerate(k_best_entropy_sort_index):
final_image[:,:,index] = image[:,:,element]
output_tensor = tf.map_fn(fn=k_best_fmap, elems=inputs)
return output_tensor`
But when I ran this code I got error :
![Screenshot (890)](https://user-images.githubusercontent.com/127013167/222950090-be802ac6-26c4-4a33-8f5d-106d3f800fb4.png)
I have tried many solutions available on the internet. But nothing worked.
I think this error is due to the shape of input tensor having None as first value in its shape (None, 224,224, 128). But I am unable to resolve this error. I want to wok on dynamic batch tensor as input .
It would be a great help for me if anyone of you could assist me. Thanks in advance. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59899/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59899/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59898 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59898/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59898/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59898/events | https://github.com/tensorflow/tensorflow/pull/59898 | 1,610,084,605 | PR_kwDOArmXAs5LTLMw | 59,898 | [NextPluggableDevice]fix NextPluggableDevice allocator(use pjrt allocator) and Sync() | {
"login": "jzhoulon",
"id": 6346853,
"node_id": "MDQ6VXNlcjYzNDY4NTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6346853?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jzhoulon",
"html_url": "https://github.com/jzhoulon",
"followers_url": "https://api.github.com/users/jzhoulon/followers",
"following_url": "https://api.github.com/users/jzhoulon/following{/other_user}",
"gists_url": "https://api.github.com/users/jzhoulon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jzhoulon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jzhoulon/subscriptions",
"organizations_url": "https://api.github.com/users/jzhoulon/orgs",
"repos_url": "https://api.github.com/users/jzhoulon/repos",
"events_url": "https://api.github.com/users/jzhoulon/events{/privacy}",
"received_events_url": "https://api.github.com/users/jzhoulon/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
},
{
"id": 1478826728,
"node_id": "MDU6TGFiZWwxNDc4ODI2NzI4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core",
"name": "comp:core",
"color": "024391",
"default": false,
"description": "issues related to core part of tensorflow"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
" @jyingl3 @penpornk can you help to take a look? thanks",
"@jyingl3 I saw the PR is stuck with some internal checks Failed, if there is something need to be fixed in my PR, please let me know, thanks.",
"Thanks Zhoulong! Could you update tensorflow/tensorflow/core/common_runtime/next_pluggable_device/BUILD to include tensorflow/core/tfrt/common:async_value_tensor? Sorry not noticing it earlier. Thank you!",
"> Thanks Zhoulong! Could you update tensorflow/tensorflow/core/common_runtime/next_pluggable_device/BUILD to include tensorflow/core/tfrt/common:async_value_tensor? Sorry not noticing it earlier. Thank you!\r\n\r\n@jyingl3 done, please have a look. thanks",
"Hi Zhoulong, we are actively testing some TPU implementation that uses NPD to meet deadline and worry this change may cause breakage. Hope you don't mind if we withhold merging this change temporarily. ",
"> Hi Zhoulong, we are actively testing some TPU implementation that uses NPD to meet deadline and worry this change may cause breakage. Hope you don't mind if we withhold merging this change temporarily.\r\n\r\nsure, we will wait. Thanks",
"hi, @jyingl3 , is there any update on this pr? thanks",
"Thank you Zhoulong and sorry for the delay. Could you add a new flag so that the allocator can be switched? Left a comment about that. Thank you!!"
] | 2023-03-05T07:07:04 | 2023-04-14T19:00:26 | 2023-04-14T19:00:26 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59898",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59898",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59898.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59898.patch",
"merged_at": "2023-04-14T19:00:26"
} | use AsyncValueAllocator if context is using PJRT runtime. And fix Sync() to call done callback to avoid hang issue in direct session. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59898/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59898/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59897 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59897/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59897/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59897/events | https://github.com/tensorflow/tensorflow/issues/59897 | 1,610,011,604 | I_kwDOArmXAs5f9tPU | 59,897 | Error to train or load data on RTX 4080 | {
"login": "enmanuelmag",
"id": 7991036,
"node_id": "MDQ6VXNlcjc5OTEwMzY=",
"avatar_url": "https://avatars.githubusercontent.com/u/7991036?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/enmanuelmag",
"html_url": "https://github.com/enmanuelmag",
"followers_url": "https://api.github.com/users/enmanuelmag/followers",
"following_url": "https://api.github.com/users/enmanuelmag/following{/other_user}",
"gists_url": "https://api.github.com/users/enmanuelmag/gists{/gist_id}",
"starred_url": "https://api.github.com/users/enmanuelmag/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/enmanuelmag/subscriptions",
"organizations_url": "https://api.github.com/users/enmanuelmag/orgs",
"repos_url": "https://api.github.com/users/enmanuelmag/repos",
"events_url": "https://api.github.com/users/enmanuelmag/events{/privacy}",
"received_events_url": "https://api.github.com/users/enmanuelmag/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": 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": 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": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@gaikwadrahul8 \r\nI tried to replicate the issue on wsl2 using tf-nightly but facing a different error . Please refer to the following screenshot and output log for reference:\r\n\r\n![wsl-test1](https://user-images.githubusercontent.com/111861663/224571815-a5f25190-8fd7-4458-8ef4-2a9c46108df0.png)\r\n**Output log**-[output_log](https://github.com/tensorflow/tensorflow/files/10952017/tf.root%40MoRaInE_.python.00_cifar.txt)\r\n\r\n\r\nCould you please look into this ?\r\n\r\nThank you !",
"Hello! Sorry i forget to comment that I found the problem. The new 40 series GPU needs CUDA 11.8 or higher and cuDNN 8.6 or higher. And that versions aren't available on Conda, so you need to install on system-side or globally ",
"Hi, @enmanuelmag \r\n\r\nApologize for the delayed response and if you're using `Nvidia GPU RTX 4080 ` GPU then you'll have use `cuda==11.8` and `cuDNN==8.6` as per [official Nvidia developer forum ](https://forums.developer.nvidia.com/t/tensorflow-and-cuda-12/237333/5?u=gaikwadrahul) and at the moment you're using `cuda==11.2.0` and `cuDNN==8.1.0 ` so I would request you to please give it try with `cuda==11.8` and `cuDNN==8.6` and check whether is it working as expected ? you can also refer our official [tested build configuration ](https://www.tensorflow.org/install/source#tested_build_configurations) section.\r\n\r\nIf you still persists issue please let us know or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!\r\n",
"This issue 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/59897\">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/59897\">No</a>\n",
"nice issues"
] | 2023-03-05T01:18:35 | 2023-05-07T05:18:18 | 2023-04-02T01:54:39 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
tf 2.13
### Custom Code
Yes
### OS Platform and Distribution
WSL 2
### Mobile device
22.04
### Python version
3.9
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
11.2.0/8.1.0
### GPU model and memory
RTX 4080
### Current Behaviour?
```shell
The error occurs at the time of performing the workouts or loading data with the tf.Dataset API.
At first I tried with my native Windows environment, I followed the installation instructions on the tensorflow page but I got an unexplainable error, the kernel just died.
Finally I tried with the nightly version and the error I have now is supposedly a memory error, which seems strange to me since I tried downloading the batch and nothing. Then I tried running a very small bechmark that I have run with my previous GPU and I get the same error (the benchmark is this one: https://github.com/mrdbourke/m1-machine-learning-test).
```
### Standalone code to reproduce the issue
```shell
GPU RTX 4080
Tensorflow nightly (2.13)
Jupyter notebook to execute: https://github.com/mrdbourke/m1-machine-learning-test/blob/main/00_cifar10_tinyvgg_benchmark.ipynb
```
### Relevant log output
```shell
This output error was running o windows native (tensorflow 2.10): kernel just died
info 16:03:03.770: Got new session 6aead894-0d87-44cf-ba16-f4a714a3ce8f
info 16:03:03.770: Started new restart session
info 16:03:03.777: Dispose Kernel process 14984.
warn 16:03:10.821: StdErr from Kernel Process 2023-03-04 16:03:10.821877: I tensorflow/
warn 16:03:10.821: StdErr from Kernel Process core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
warn 16:03:11.207: StdErr from Kernel Process 2023-03-04 16:03:11.207450: I tensorflow
warn 16:03:11.207: StdErr from Kernel Process /core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13402 MB memory: -> device: 0, name: NVIDIA GeForce RTX 4080, pci bus id: 0000:08:00.0, compute capability: 8.9
error 16:03:11.949: Disposing session as kernel process died ExitCode: 3221226505, Reason: c:\Users\emman\anaconda3\envs\tf-env\lib\site-packages\traitlets\traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5.
warn(
c:\Users\emman\anaconda3\envs\tf-env\lib\site-packages\traitlets\traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '17823775-70bc-4db8-8377-3a19f2263309' instead of 'b"17823775-70bc-4db8-8377-3a19f2263309"'.
warn(
2023-03-04 16:03:10.821877: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-04 16:03:11.207450: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13402 MB memory: -> device: 0, name: NVIDIA GeForce RTX 4080, pci bus id: 0000:08:00.0, compute capability: 8.9
info 16:03:11.950: Dispose Kernel process 20040.
error 16:03:11.951: Raw kernel process exited code: 3221226505
error 16:03:11.954: Error in waiting for cell to complete Error: Canceled future for execute_request message before replies were done
at t.KernelShellFutureHandler.dispose (c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:33213)
at c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:52265
at Map.forEach (<anonymous>)
at y._clearKernelState (c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:52250)
at y.dispose (c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:45732)
at c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:127079
at ee (c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:2:1552543)
at lh.dispose (c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:127055)
at ph.dispose (c:\Users\emman\.vscode\extensions\ms-toolsai.jupyter-2023.2.1000592019\out\extension.node.js:17:134354)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
warn 16:03:11.956: Cell completed with errors {
message: 'Canceled future for execute_request message before replies were done'
}
info 16:03:11.959: Cancel all remaining cells true || Error || undefined
```
This output error was running on WSL 2 (tensorflow nightly 2.13): ail to allocate memory even when the GPU memory is free (16 GB)
```
2023-03-04 22:55:38.084081: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-04 22:55:38.084850: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:08:00.0/numa_node
Your kernel may have been built without NUMA support.
2023-03-04 22:55:38.084914: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:08:00.0/numa_node
Your kernel may have been built without NUMA support.
2023-03-04 22:55:38.084958: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:08:00.0/numa_node
Your kernel may have been built without NUMA support.
2023-03-04 22:55:38.807671: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:08:00.0/numa_node
Your kernel may have been built without NUMA support.
2023-03-04 22:55:38.808089: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:08:00.0/numa_node
Your kernel may have been built without NUMA support.
2023-03-04 22:55:38.808116: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1700] Could not identify NUMA node of platform GPU id 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-03-04 22:55:38.808171: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:967] could not open file to read NUMA node: /sys/bus/pci/devices/0000:08:00.0/numa_node
Your kernel may have been built without NUMA support.
2023-03-04 22:55:38.808390: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1613] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 13344 MB memory: -> device: 0, name: NVIDIA GeForce RTX 4080, pci bus id: 0000:08:00.0, compute capability: 8.9
2023-03-04 22:55:39.164350: W tensorflow/tsl/framework/cpu_allocator_impl.cc:82] Allocation of 1228800000 exceeds 10% of free system memory.
2023-03-04 22:55:39.904405: I tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:735] failed to allocate 13.03G (13992198144 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
2023-03-04 22:55:40.043405: I tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:735] failed to allocate 11.73G (12592977920 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
2023-03-04 22:55:40.185360: I tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:735] failed to allocate 10.55G (11333680128 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
2023-03-04 22:55:40.328259: I tensorflow/compiler/xla/stream_executor/cuda/cuda_driver.cc:735] failed to allocate 9.50G (10200311808 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory
2023-03-04 22:55:40.651989: W tensorflow/tsl/framework/cpu_allocator_impl.cc:82] Allocation of 1228800000 exceeds 10% of free system memory.
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59897/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59897/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59896 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59896/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59896/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59896/events | https://github.com/tensorflow/tensorflow/pull/59896 | 1,609,757,876 | PR_kwDOArmXAs5LSNvx | 59,896 | Add fuzztest.bazelrc and fuzz options in .bazelrc | {
"login": "aneeshthakur67",
"id": 124856902,
"node_id": "U_kgDOB3EqRg",
"avatar_url": "https://avatars.githubusercontent.com/u/124856902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aneeshthakur67",
"html_url": "https://github.com/aneeshthakur67",
"followers_url": "https://api.github.com/users/aneeshthakur67/followers",
"following_url": "https://api.github.com/users/aneeshthakur67/following{/other_user}",
"gists_url": "https://api.github.com/users/aneeshthakur67/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aneeshthakur67/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aneeshthakur67/subscriptions",
"organizations_url": "https://api.github.com/users/aneeshthakur67/orgs",
"repos_url": "https://api.github.com/users/aneeshthakur67/repos",
"events_url": "https://api.github.com/users/aneeshthakur67/events{/privacy}",
"received_events_url": "https://api.github.com/users/aneeshthakur67/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 | [
"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/59896/checks?check_run_id=11762859104) 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 @aneeshthakur67 Can you please resolve conflicts? Thank you!",
"Francisco, I recall these being already integrated?",
"Oh they are, the PR is a clone of an old change. Solving the conflicts shows that there's nothing new."
] | 2023-03-04T12:37:40 | 2023-05-01T16:26:10 | 2023-03-06T18:34:29 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59896",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59896",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59896.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59896.patch",
"merged_at": null
} | hello therr !! | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59896/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 1,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59896/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59895 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59895/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59895/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59895/events | https://github.com/tensorflow/tensorflow/pull/59895 | 1,609,689,982 | PR_kwDOArmXAs5LSAgi | 59,895 | Updated Broken link for lib_interpreter | {
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @lu-wang-g Can you please review this PR ? Thank you!"
] | 2023-03-04T09:16:48 | 2023-05-01T16:26:10 | 2023-03-24T13:56:36 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59895",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59895",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59895.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59895.patch",
"merged_at": "2023-03-24T13:56:36"
} | I have updated broken link for hyperlink(lib_interpreter) on this page `https://www.tensorflow.org/lite/examples/object_detection/overview`, from (https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android/lib_interpreter) to new working link (https://github.com/tensorflow/examples/tree/eb925e460f761f5ed643d17f0c449e040ac2ac45/lite/examples/object_detection/android/lib_interpreter) so please do the needful. Thank you! | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59895/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59895/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59894 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59894/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59894/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59894/events | https://github.com/tensorflow/tensorflow/pull/59894 | 1,609,408,210 | PR_kwDOArmXAs5LRDrI | 59,894 | Updates RELEASE.md | {
"login": "learning-to-play",
"id": 66660475,
"node_id": "MDQ6VXNlcjY2NjYwNDc1",
"avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/learning-to-play",
"html_url": "https://github.com/learning-to-play",
"followers_url": "https://api.github.com/users/learning-to-play/followers",
"following_url": "https://api.github.com/users/learning-to-play/following{/other_user}",
"gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}",
"starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions",
"organizations_url": "https://api.github.com/users/learning-to-play/orgs",
"repos_url": "https://api.github.com/users/learning-to-play/repos",
"events_url": "https://api.github.com/users/learning-to-play/events{/privacy}",
"received_events_url": "https://api.github.com/users/learning-to-play/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-03-03T23:29:26 | 2023-03-04T01:22:46 | 2023-03-03T23:49:58 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59894",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59894",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59894.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59894.patch",
"merged_at": "2023-03-03T23:49:58"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59894/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59894/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59893 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59893/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59893/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59893/events | https://github.com/tensorflow/tensorflow/pull/59893 | 1,609,396,064 | PR_kwDOArmXAs5LRA59 | 59,893 | Keep published release notes intact, update for patch release | {
"login": "mihaimaruseac",
"id": 323199,
"node_id": "MDQ6VXNlcjMyMzE5OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/323199?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mihaimaruseac",
"html_url": "https://github.com/mihaimaruseac",
"followers_url": "https://api.github.com/users/mihaimaruseac/followers",
"following_url": "https://api.github.com/users/mihaimaruseac/following{/other_user}",
"gists_url": "https://api.github.com/users/mihaimaruseac/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mihaimaruseac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mihaimaruseac/subscriptions",
"organizations_url": "https://api.github.com/users/mihaimaruseac/orgs",
"repos_url": "https://api.github.com/users/mihaimaruseac/repos",
"events_url": "https://api.github.com/users/mihaimaruseac/events{/privacy}",
"received_events_url": "https://api.github.com/users/mihaimaruseac/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-03-03T23:20:54 | 2023-03-03T23:23:38 | 2023-03-03T23:23:34 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59893",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59893",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59893.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59893.patch",
"merged_at": "2023-03-03T23:23:34"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59893/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59893/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59892 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59892/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59892/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59892/events | https://github.com/tensorflow/tensorflow/pull/59892 | 1,609,228,870 | PR_kwDOArmXAs5LQcmJ | 59,892 | Updates RELEASE.md with Windows GPU WSL2 support | {
"login": "learning-to-play",
"id": 66660475,
"node_id": "MDQ6VXNlcjY2NjYwNDc1",
"avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/learning-to-play",
"html_url": "https://github.com/learning-to-play",
"followers_url": "https://api.github.com/users/learning-to-play/followers",
"following_url": "https://api.github.com/users/learning-to-play/following{/other_user}",
"gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}",
"starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions",
"organizations_url": "https://api.github.com/users/learning-to-play/orgs",
"repos_url": "https://api.github.com/users/learning-to-play/repos",
"events_url": "https://api.github.com/users/learning-to-play/events{/privacy}",
"received_events_url": "https://api.github.com/users/learning-to-play/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-03-03T20:48:20 | 2023-03-03T23:01:02 | 2023-03-03T21:26:22 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59892",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59892",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59892.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59892.patch",
"merged_at": "2023-03-03T21:26:22"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59892/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59892/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59891 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59891/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59891/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59891/events | https://github.com/tensorflow/tensorflow/pull/59891 | 1,609,227,211 | PR_kwDOArmXAs5LQcRW | 59,891 | Adds Windows WSL2 GPU support to RELEASE.md | {
"login": "learning-to-play",
"id": 66660475,
"node_id": "MDQ6VXNlcjY2NjYwNDc1",
"avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/learning-to-play",
"html_url": "https://github.com/learning-to-play",
"followers_url": "https://api.github.com/users/learning-to-play/followers",
"following_url": "https://api.github.com/users/learning-to-play/following{/other_user}",
"gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}",
"starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions",
"organizations_url": "https://api.github.com/users/learning-to-play/orgs",
"repos_url": "https://api.github.com/users/learning-to-play/repos",
"events_url": "https://api.github.com/users/learning-to-play/events{/privacy}",
"received_events_url": "https://api.github.com/users/learning-to-play/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-03-03T20:46:36 | 2023-03-03T23:00:36 | 2023-03-03T21:26:00 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59891",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59891",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59891.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59891.patch",
"merged_at": "2023-03-03T21:25:59"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59891/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59891/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59890 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59890/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59890/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59890/events | https://github.com/tensorflow/tensorflow/issues/59890 | 1,609,179,518 | I_kwDOArmXAs5f6iF- | 59,890 | NCCLAllReduce fails with CUDA 12.0 and CuDNN 8.8.0 when using MirroredStrategy | {
"login": "rajveerb",
"id": 46040700,
"node_id": "MDQ6VXNlcjQ2MDQwNzAw",
"avatar_url": "https://avatars.githubusercontent.com/u/46040700?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rajveerb",
"html_url": "https://github.com/rajveerb",
"followers_url": "https://api.github.com/users/rajveerb/followers",
"following_url": "https://api.github.com/users/rajveerb/following{/other_user}",
"gists_url": "https://api.github.com/users/rajveerb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rajveerb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rajveerb/subscriptions",
"organizations_url": "https://api.github.com/users/rajveerb/orgs",
"repos_url": "https://api.github.com/users/rajveerb/repos",
"events_url": "https://api.github.com/users/rajveerb/events{/privacy}",
"received_events_url": "https://api.github.com/users/rajveerb/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 996845227,
"node_id": "MDU6TGFiZWw5OTY4NDUyMjc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat",
"name": "comp:dist-strat",
"color": "0052cc",
"default": false,
"description": "Distribution Strategy related issues"
},
{
"id": 5206407904,
"node_id": "LA_kwDOArmXAs8AAAABNlN64A",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12",
"name": "TF 2.12",
"color": "c5def5",
"default": false,
"description": "For issues related to Tensorflow 2.12"
}
] | closed | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @rajveerb, cuda 12.0 is not supported on Ubuntu 18.04. As you are using Ubuntu 18.04 and you need to use a newer version of CUDA. You will need to upgrade your operating system to a newer version that is supported. Alternatively, you can use an older version of CUDA that is compatible with Ubuntu 18.04. Thank you!",
"@synandi \r\nThe support for CUDA 12.0 in Ubuntu 18.04 is available. Check [this](https://developer.nvidia.com/cuda-12-0-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu).",
"@rajveerb, Apologies for the confusion. We are trying to dig deep into the issue. We will update here soon. Thank you! ",
"Hi, For Tensorflow 2.12 release, we have tested the build configuration with CUDA 11.8 version and CuDNN 8.6 version, same details will be published in the table here https://www.tensorflow.org/install/source#gpu.\r\nCould you please test against the above configurations and let us know if you are still facing an error. Thanks!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"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/59890\">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/59890\">No</a>\n",
"> @synandi The support for CUDA 12.0 in Ubuntu 18.04 is available. Check [this](https://developer.nvidia.com/cuda-12-0-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu).\r\n\r\nhi, any solution now?"
] | 2023-03-03T20:03:08 | 2023-10-13T07:08:04 | 2023-04-09T01:54:09 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
v2.12.0-rc0
### Custom Code
No
### OS Platform and Distribution
Linux Ubuntu 18.04
### Mobile device
_No response_
### Python version
3.10.9
### Bazel version
5.3.0
### GCC/Compiler version
9.4.0
### CUDA/cuDNN version
12.0/8.8.0
### GPU model and memory
NVIDIA Tesla V100-SXM2 with 16GB
### Current Behaviour?
```
NCCLAllReduce when used in MirrorStrategy causes a crash.
ReductionToOneDevice in MirrorStrategy works fine.
I believe the drivers, CUDA, and CuDNN installations are not an issue because
NCCLAllReduce works fine when using PyTorch.
I have attached relevant code and log from it.
I have built tensorflow from source and there were no errors generated in build process either.
Using TF nightly does not recognize GPUs so I was not able to reproduce the same bug.
```
### Standalone code to reproduce the issue
[Link](https://github.com/tensorflow/docs/blob/9b5b8b055e29d006b94b5dfc906d774ee4094bae/site/en/tutorials/distribute/custom_training.ipynb) from tensorflow's tutorial which can be used for bug replication.
### Relevant log output
```python
2023-03-03 13:12:14.345311: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14575 MB memory: -> device: 0, name: Tesla V100-SXM2-16GB, pci bus id: 0000:04:00.0, compute capability: 7.0
2023-03-03 13:12:14.346201: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 14575 MB memory: -> device: 1, name: Tesla V100-SXM2-16GB, pci bus id: 0000:06:00.0, compute capability: 7.0
2023-03-03 13:12:14.346759: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 14575 MB memory: -> device: 2, name: Tesla V100-SXM2-16GB, pci bus id: 0000:07:00.0, compute capability: 7.0
2023-03-03 13:12:14.347281: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 14575 MB memory: -> device: 3, name: Tesla V100-SXM2-16GB, pci bus id: 0000:08:00.0, compute capability: 7.0
2023-03-03 13:12:17.150486: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_0' with dtype float and shape [60000,28,28,1]
[[{{node Placeholder/_0}}]]
2023-03-03 13:12:17.150814: I tensorflow/core/common_runtime/executor.cc:1197] [/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): INVALID_ARGUMENT: You must feed a value for placeholder tensor 'Placeholder/_1' with dtype uint8 and shape [60000]
[[{{node Placeholder/_1}}]]
INFO:tensorflow:batch_all_reduce: 8 all-reduces with algorithm = nccl, num_packs = 1
INFO:tensorflow:Reduce to /job:localhost/replica:0/task:0/device:CPU:0 then broadcast to ('/job:localhost/replica:0/task:0/device:CPU:0',).
INFO:tensorflow:batch_all_reduce: 8 all-reduces with algorithm = nccl, num_packs = 1
INFO:tensorflow:Reduce to /job:localhost/replica:0/task:0/device:CPU:0 then broadcast to ('/job:localhost/replica:0/task:0/device:CPU:0',).
2023-03-03 13:12:22.182639: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8800
2023-03-03 13:12:22.192166: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8800
2023-03-03 13:12:22.213909: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8800
2023-03-03 13:12:22.227182: I tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:424] Loaded cuDNN version 8800
2023-03-03 13:12:23.789883: I tensorflow/tsl/platform/default/subprocess.cc:304] Start cannot spawn child process: No such file or directory
2023-03-03 13:12:24.937923: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at nccl_ops.cc:108 : UNKNOWN: Error invoking NCCL: unhandled cuda error
2023-03-03 13:12:24.937999: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at nccl_ops.cc:108 : UNKNOWN: Error invoking NCCL: unhandled cuda error
2023-03-03 13:12:24.938051: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:GPU:1] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNKNOWN: Error invoking NCCL: unhandled cuda error
[[{{node NcclAllReduce_1}}]]
2023-03-03 13:12:24.938075: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at nccl_ops.cc:108 : UNKNOWN: Error invoking NCCL: unhandled cuda error
2023-03-03 13:12:24.938105: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:GPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNKNOWN: Error invoking NCCL: unhandled cuda error
[[{{node NcclAllReduce}}]]
2023-03-03 13:12:24.938124: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at nccl_ops.cc:108 : UNKNOWN: Error invoking NCCL: unhandled cuda error
2023-03-03 13:12:24.938175: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:GPU:3] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNKNOWN: Error invoking NCCL: unhandled cuda error
[[{{node NcclAllReduce_3}}]]
2023-03-03 13:12:24.938202: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:CPU:0] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNKNOWN: Error invoking NCCL: unhandled cuda error
[[{{node NcclAllReduce_1}}]]
[[Identity_5/_92]]
2023-03-03 13:12:24.938224: I tensorflow/core/common_runtime/executor.cc:1197] [/job:localhost/replica:0/task:0/device:GPU:2] (DEBUG INFO) Executor start aborting (this does not indicate an error and you can ignore this message): UNKNOWN: Error invoking NCCL: unhandled cuda error
[[{{node NcclAllReduce_2}}]]
Output exceeds the size limit. Open the full output data in a text editor
---------------------------------------------------------------------------
UnknownError Traceback (most recent call last)
Cell In[14], line 18
16 num_batches = 0
17 for x in train_dist_dataset:
---> 18 total_loss += distributed_train_step(x)
19 num_batches += 1
20 train_loss = total_loss / num_batches
File /home/anaconda3/envs/tf_env/lib/python3.10/site-packages/tensorflow/python/util/traceback_utils.py:153, in filter_traceback..error_handler(*args, **kwargs)
151 except Exception as e:
152 filtered_tb = _process_traceback_frames(e.__traceback__)
--> 153 raise e.with_traceback(filtered_tb) from None
154 finally:
155 del filtered_tb
File /home/anaconda3/envs/tf_env/lib/python3.10/site-packages/tensorflow/python/eager/execute.py:52, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
50 try:
51 ctx.ensure_initialized()
---> 52 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
53 inputs, attrs, num_outputs)
54 except core._NotOkStatusException as e:
55 if name is not None:
UnknownError: Graph execution error:
Detected at node 'NcclAllReduce' defined at (most recent call last):
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/traitlets/config/application.py", line 992, in launch_instance
app.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 711, in start
self.io_loop.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/tornado/platform/asyncio.py", line 215, in start
self.asyncio_loop.run_forever()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 1906, in _run_once
handle._run()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 510, in dispatch_queue
await self.process_one()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 499, in process_one
await dispatch(*args)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 406, in dispatch_shell
await result
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 729, in execute_request
reply_content = await reply_content
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/ipkernel.py", line 411, in do_execute
res = shell.run_cell(
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/zmqshell.py", line 531, in run_cell
return super().run_cell(*args, **kwargs)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2961, in run_cell
result = self._run_cell(
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3016, in _run_cell
result = runner(coro)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3221, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3400, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_16086/4166678551.py", line 18, in
total_loss += distributed_train_step(x)
File "/tmp/ipykernel_16086/4166678551.py", line 5, in distributed_train_step
per_replica_losses = strategy.run(train_step, args=(dataset_inputs,))
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/keras/optimizers/utils.py", line 175, in _all_reduce_sum_fn
return distribution.extended.batch_reduce_to(
Node: 'NcclAllReduce'
Detected at node 'NcclAllReduce_3' defined at (most recent call last):
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/traitlets/config/application.py", line 992, in launch_instance
app.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 711, in start
self.io_loop.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/tornado/platform/asyncio.py", line 215, in start
self.asyncio_loop.run_forever()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 1906, in _run_once
handle._run()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 510, in dispatch_queue
await self.process_one()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 499, in process_one
await dispatch(*args)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 406, in dispatch_shell
await result
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 729, in execute_request
reply_content = await reply_content
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/ipkernel.py", line 411, in do_execute
res = shell.run_cell(
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/zmqshell.py", line 531, in run_cell
return super().run_cell(*args, **kwargs)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2961, in run_cell
result = self._run_cell(
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3016, in _run_cell
result = runner(coro)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3221, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3400, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_16086/4166678551.py", line 18, in
total_loss += distributed_train_step(x)
File "/tmp/ipykernel_16086/4166678551.py", line 5, in distributed_train_step
per_replica_losses = strategy.run(train_step, args=(dataset_inputs,))
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/keras/optimizers/utils.py", line 175, in _all_reduce_sum_fn
return distribution.extended.batch_reduce_to(
Node: 'NcclAllReduce_3'
Detected at node 'NcclAllReduce_2' defined at (most recent call last):
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/traitlets/config/application.py", line 992, in launch_instance
app.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 711, in start
self.io_loop.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/tornado/platform/asyncio.py", line 215, in start
self.asyncio_loop.run_forever()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 1906, in _run_once
handle._run()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 510, in dispatch_queue
await self.process_one()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 499, in process_one
await dispatch(*args)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 406, in dispatch_shell
await result
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 729, in execute_request
reply_content = await reply_content
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/ipkernel.py", line 411, in do_execute
res = shell.run_cell(
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/zmqshell.py", line 531, in run_cell
return super().run_cell(*args, **kwargs)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2961, in run_cell
result = self._run_cell(
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3016, in _run_cell
result = runner(coro)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/async_helpers.py", line 129, in _pseudo_sync_runner
coro.send(None)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3221, in run_cell_async
has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3400, in run_ast_nodes
if await self.run_code(code, result, async_=asy):
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_16086/4166678551.py", line 18, in
total_loss += distributed_train_step(x)
File "/tmp/ipykernel_16086/4166678551.py", line 5, in distributed_train_step
per_replica_losses = strategy.run(train_step, args=(dataset_inputs,))
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/keras/optimizers/utils.py", line 175, in _all_reduce_sum_fn
return distribution.extended.batch_reduce_to(
Node: 'NcclAllReduce_2'
Detected at node 'NcclAllReduce_1' defined at (most recent call last):
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/anaconda3/envs/tf_env/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel_launcher.py", line 17, in
app.launch_new_instance()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/traitlets/config/application.py", line 992, in launch_instance
app.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/ipykernel/kernelapp.py", line 711, in start
self.io_loop.start()
File "/home/anaconda3/envs/tf_env/lib/python3.10/site-packages/tornado/platform/asyncio.py", line 215, in start
self.asyncio_loop.run_forever()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/base_events.py", line 1906, in _run_once
handle._run()
File "/home/anaconda3/envs/tf_env/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
...
[[Identity_5/_92]]
(4) UNKNOWN: Error invoking NCCL: unhandled cuda error
[[{{node NcclAllReduce_1}}]]
0 successful operations.
0 derived errors ignored. [Op:__inference_distributed_train_step_4197]
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59890/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59890/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59889 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59889/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59889/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59889/events | https://github.com/tensorflow/tensorflow/pull/59889 | 1,609,167,594 | PR_kwDOArmXAs5LQPwg | 59,889 | r2.12 cherry-pick: 890a846bdc2 "[xla:gpu] Create a non-atomically upgradeable reader mutex lock that acquires and releases the lock via RAII" | {
"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-03-03T19:52:05 | 2023-03-03T23:24:10 | 2023-03-03T19:55:43 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59889",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59889",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59889.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59889.patch",
"merged_at": "2023-03-03T19:55:43"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/890a846bdc26e0e1e66120adb1e2fb2aa33c7323 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59889/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59889/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59888 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59888/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59888/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59888/events | https://github.com/tensorflow/tensorflow/issues/59888 | 1,609,104,745 | I_kwDOArmXAs5f6P1p | 59,888 | GPU:0 is joining a group with incompatible device typeCPU | {
"login": "dengpanyin",
"id": 34698550,
"node_id": "MDQ6VXNlcjM0Njk4NTUw",
"avatar_url": "https://avatars.githubusercontent.com/u/34698550?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dengpanyin",
"html_url": "https://github.com/dengpanyin",
"followers_url": "https://api.github.com/users/dengpanyin/followers",
"following_url": "https://api.github.com/users/dengpanyin/following{/other_user}",
"gists_url": "https://api.github.com/users/dengpanyin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dengpanyin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dengpanyin/subscriptions",
"organizations_url": "https://api.github.com/users/dengpanyin/orgs",
"repos_url": "https://api.github.com/users/dengpanyin/repos",
"events_url": "https://api.github.com/users/dengpanyin/events{/privacy}",
"received_events_url": "https://api.github.com/users/dengpanyin/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097547538,
"node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu",
"name": "comp:gpu",
"color": "0052cc",
"default": false,
"description": "GPU related issues"
},
{
"id": 4032183365,
"node_id": "LA_kwDOArmXAs7wVjxF",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9",
"name": "TF 2.9",
"color": "1CF842",
"default": false,
"description": "Issues found in the TF 2.9 release (or RCs)"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@dengpanyin Thanks for reporting the issue.\r\n\r\nIn order to expedite the troubleshooting process, please share a stand alone code/snippet to reproduce the issue.\r\n\r\nThanks.",
"@pjpratik stand alone code is unavailable since this issue is not able to reproduce every time. We still want to understand the root cause since multi-models have the same issue.",
"@dengpanyin Could you please provide more details to debug the issue. It will help us to investigate the issue further.\r\n\r\n Thanks.\r\n",
"@dengpanyin can you explicitly specify the device type ,so that all the devices in the collective group have the same device type",
"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/59888\">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/59888\">No</a>\n"
] | 2023-03-03T18:51:56 | 2023-03-28T01:57:35 | 2023-03-28T01:57:33 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
tf2.9
### Custom Code
Yes
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
tensorflow.python.framework.errors_impl.InternalError: Collective ops is aborted by: Device /job:worker/replica:0/task:0/device:GPU:0 is joining a group with incompatible device typeCPU (group_key=3)
```
### Standalone code to reproduce the issue
```shell
Observed the above errors twice a week. Can you explain what's the root cause and how to fix it?
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59888/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59888/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59887 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59887/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59887/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59887/events | https://github.com/tensorflow/tensorflow/issues/59887 | 1,608,324,063 | I_kwDOArmXAs5f3RPf | 59,887 | compile tensorflow_cc.so with c++17 failed with cuda support | {
"login": "Weili17",
"id": 31896190,
"node_id": "MDQ6VXNlcjMxODk2MTkw",
"avatar_url": "https://avatars.githubusercontent.com/u/31896190?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Weili17",
"html_url": "https://github.com/Weili17",
"followers_url": "https://api.github.com/users/Weili17/followers",
"following_url": "https://api.github.com/users/Weili17/following{/other_user}",
"gists_url": "https://api.github.com/users/Weili17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Weili17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Weili17/subscriptions",
"organizations_url": "https://api.github.com/users/Weili17/orgs",
"repos_url": "https://api.github.com/users/Weili17/repos",
"events_url": "https://api.github.com/users/Weili17/events{/privacy}",
"received_events_url": "https://api.github.com/users/Weili17/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": 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"
},
{
"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": "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 | [
"my initial intention is to build the tensorflow so with c++ standard which use std::basic_string_view instead of absl::string_view. \r\nI just follow the comments from these releated issues, but did not success.\r\nhttps://github.com/tensorflow/tensorflow/issues/57127,https://github.com/tensorflow/tensorflow/issues/23561\r\n\r\n\r\n",
"it seems somewhere is not compiled with c++17? ",
"This seems like a recent regression",
"Hi, @SuryanarayanaY \r\n\r\nCould you please take look on this issue ? Thank you!",
"Hi @Weili17 ,\r\n\r\nPlease try the tested configurations below. As you are using TF 2.8v CUDA-11.2 and GCC 7.3.1 are the tested configurations.\r\n\r\n\r\n\r\nVersion | Python version | Compiler | Build tools | cuDNN | CUDA\r\n-- | -- | -- | -- | -- | --\r\ntensorflow-2.11.0 | 3.7-3.10 | GCC 9.3.1 | Bazel 5.3.0 | 8.1 | 11.2\r\ntensorflow-2.10.0 | 3.7-3.10 | GCC 9.3.1 | Bazel 5.1.1 | 8.1 | 11.2\r\ntensorflow-2.9.0 | 3.7-3.10 | GCC 9.3.1 | Bazel 5.0.0 | 8.1 | 11.2\r\ntensorflow-2.8.0 | 3.7-3.10 | GCC 7.3.1 | Bazel 4.2.1 | 8.1 | 11.2\r\n\r\n\r\nRequest you to use the suitable configurations for Tf2.8 version or Upgrade TF version to latest versions >= TF 2.9 and change CUDA to 11.2 version and let us know if still problem persists.\r\n",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59887\">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/59887\">No</a>\n"
] | 2023-03-03T10:01:07 | 2023-04-09T01:54:15 | 2023-04-09T01:54:12 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Build/Install
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
tf 2.8.4
### Custom Code
No
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
gcc (Debian 8.3.0-6) 8.3.0
### CUDA/cuDNN version
11.4
### GPU model and memory
Tesla T4
### Current Behaviour?
```shell
A bug happened!
```
### Standalone code to reproduce the issue
```shell
From source file;
tag: v2.8.4
```
### Relevant log output
```shell
build cmd: bazel build --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" --cxxopt=-std=c++17 //tensorflow:libtensorflow_cc.so
Report error: Linking tensorflow/libtensorflow_cc.so.2.8.4 failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc @bazel-out/k8-opt/bin/tensorflow/libtensorflow_cc.so.2.8.4-2.params
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/libunique_op_gpu.pic.lo(unique_op_gpu_0.cu.pic.o): in function `tensorflow::kernel_factory::OpKernelRegistrar::OpKernelRegistrar(tensorflow::KernelDef const*, absl::lts_20210324::string_view, tensorflow::OpKernel* (*)(tensorflow::OpKernelConstruction*))':
tmpxft_00003846_00000000-6_unique_op_gpu_0.cu.cudafe1.cpp:(.text._ZN10tensorflow14kernel_factory17OpKernelRegistrarC2EPKNS_9KernelDefEN4absl12lts_2021032411string_viewEPFPNS_8OpKernelEPNS_20OpKernelConstructionEE[_ZN10tensorflow14kernel_factory17OpKernelRegistrarC5EPKNS_9KernelDefEN4absl12lts_2021032411string_viewEPFPNS_8OpKernelEPNS_20OpKernelConstructionEE]+0x50): undefined reference to `tensorflow::kernel_factory::OpKernelRegistrar::InitInternal(tensorflow::KernelDef const*, absl::lts_20210324::string_view, std::unique_ptr<tensorflow::kernel_factory::OpKernelFactory, std::default_delete<tensorflow::kernel_factory::OpKernelFactory> >)'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/libunique_op_gpu.pic.lo(unique_op_gpu_0.cu.pic.o): in function `tensorflow::Status tensorflow::errors::Internal<char const*, char const*>(char const*, char const*)':
tmpxft_00003846_00000000-6_unique_op_gpu_0.cu.cudafe1.cpp:(.text._ZN10tensorflow6errors8InternalIJPKcS3_EEENS_6StatusEDpT_[_ZN10tensorflow6errors8InternalIJPKcS3_EEENS_6StatusEDpT_]+0xba): undefined reference to `tensorflow::Status::Status(tensorflow::error::Code, absl::lts_20210324::string_view, std::vector<tensorflow::StackFrame, std::allocator<tensorflow::StackFrame> >&&)'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/libunique_op_gpu.pic.lo(unique_op_gpu_0.cu.pic.o): in function `tensorflow::Status tensorflow::errors::Internal<char const*, unsigned long, char const*, char const*>(char const*, unsigned long, char const*, char const*)':
tmpxft_00003846_00000000-6_unique_op_gpu_0.cu.cudafe1.cpp:(.text._ZN10tensorflow6errors8InternalIJPKcmS3_S3_EEENS_6StatusEDpT_[_ZN10tensorflow6errors8InternalIJPKcmS3_S3_EEENS_6StatusEDpT_]+0x427): undefined reference to `tensorflow::Status::Status(tensorflow::error::Code, absl::lts_20210324::string_view, std::vector<tensorflow::StackFrame, std::allocator<tensorflow::StackFrame> >&&)'
/usr/bin/ld: bazel-out/k8-opt/bin/tensorflow/core/kernels/libdynamic_partition_op_gpu.pic.lo(dynamic_partition_op_gpu.cu.pic.o): in function `tensorflow::{lambda(tensorflow::KernelDef const*)#1}::operator()(tensorflow::KernelDef const*) const::{lambda(tensorflow::OpKernelConstruction*)#1}::_FUN(tensorflow::OpKernelConstruction)':
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59887/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59887/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59886 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59886/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59886/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59886/events | https://github.com/tensorflow/tensorflow/issues/59886 | 1,607,874,461 | I_kwDOArmXAs5f1jed | 59,886 | No way to create new react-native app with tfjs-react-native because of dependency issues??? | {
"login": "rbmdotdev",
"id": 86985579,
"node_id": "MDQ6VXNlcjg2OTg1NTc5",
"avatar_url": "https://avatars.githubusercontent.com/u/86985579?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rbmdotdev",
"html_url": "https://github.com/rbmdotdev",
"followers_url": "https://api.github.com/users/rbmdotdev/followers",
"following_url": "https://api.github.com/users/rbmdotdev/following{/other_user}",
"gists_url": "https://api.github.com/users/rbmdotdev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rbmdotdev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rbmdotdev/subscriptions",
"organizations_url": "https://api.github.com/users/rbmdotdev/orgs",
"repos_url": "https://api.github.com/users/rbmdotdev/repos",
"events_url": "https://api.github.com/users/rbmdotdev/events{/privacy}",
"received_events_url": "https://api.github.com/users/rbmdotdev/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": 1093464312,
"node_id": "MDU6TGFiZWwxMDkzNDY0MzEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:others",
"name": "type:others",
"color": "159b2e",
"default": false,
"description": "issues not falling in bug, perfromance, support, build and install or feature"
}
] | closed | false | {
"login": "tiruk007",
"id": 111861663,
"node_id": "U_kgDOBqrfnw",
"avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tiruk007",
"html_url": "https://github.com/tiruk007",
"followers_url": "https://api.github.com/users/tiruk007/followers",
"following_url": "https://api.github.com/users/tiruk007/following{/other_user}",
"gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions",
"organizations_url": "https://api.github.com/users/tiruk007/orgs",
"repos_url": "https://api.github.com/users/tiruk007/repos",
"events_url": "https://api.github.com/users/tiruk007/events{/privacy}",
"received_events_url": "https://api.github.com/users/tiruk007/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tiruk007",
"id": 111861663,
"node_id": "U_kgDOBqrfnw",
"avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tiruk007",
"html_url": "https://github.com/tiruk007",
"followers_url": "https://api.github.com/users/tiruk007/followers",
"following_url": "https://api.github.com/users/tiruk007/following{/other_user}",
"gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions",
"organizations_url": "https://api.github.com/users/tiruk007/orgs",
"repos_url": "https://api.github.com/users/tiruk007/repos",
"events_url": "https://api.github.com/users/tiruk007/events{/privacy}",
"received_events_url": "https://api.github.com/users/tiruk007/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi ,\r\nI am a working professional and willing to participate in GSOC 2023 so want to solve this issue",
"@rbmdotdev \r\nThis issue is more related to tfjs. So, Could you please post this issue on [tensorflow/tfjs](https://github.com/tensorflow/tfjs/issues/new/choose) for quick assistance.\r\n\r\nThank you !",
"Ok done https://github.com/tensorflow/tfjs/issues/7454 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/59886\">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/59886\">No</a>\n"
] | 2023-03-03T03:19:01 | 2023-03-07T20:04:01 | 2023-03-07T20:03:58 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
tfjs-react-native-0.8.0
### Custom Code
Yes
### OS Platform and Distribution
all
### Mobile device
all
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
I hope I have just missed something dumb but I don’t think so as I have been struggling to get tfjs-react-native working for the last two days.
version 0.8.0 of this library seems to be unacceptably out of date as far as its dependencies go resulting in it not being possible.....as far as I can tell.....to instantiate a new react-native / expo app and add it as a dependency. You have to jump through some major hoops to find expo and react SDK versions that might possibly support the versions of react and react-native this library expects and even then it still won't work for me.
There is at least 1 other ticket #7323 mentioning the fact that the libraries dependencies are so out of date that it looks like the library is not maintained at all.
The response to that ticket seems to be 'no it is maintained we will update it sometime'. Can this please get resolved?
```
### Standalone code to reproduce the issue
```shell
follow this tutorial to create a new expo app https://docs.expo.dev/get-started/create-a-new-app/
then do npm i @tensorflow/tfjs-react-native
It will refuse to install due to conflicting react and react-native dependencies
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59886/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59886/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59885 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59885/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59885/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59885/events | https://github.com/tensorflow/tensorflow/pull/59885 | 1,607,825,313 | PR_kwDOArmXAs5LLu5a | 59,885 | Backport non_atomically_upgradeable_rw_lock. Fixes issue #59878. | {
"login": "plopresti",
"id": 8864861,
"node_id": "MDQ6VXNlcjg4NjQ4NjE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8864861?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/plopresti",
"html_url": "https://github.com/plopresti",
"followers_url": "https://api.github.com/users/plopresti/followers",
"following_url": "https://api.github.com/users/plopresti/following{/other_user}",
"gists_url": "https://api.github.com/users/plopresti/gists{/gist_id}",
"starred_url": "https://api.github.com/users/plopresti/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/plopresti/subscriptions",
"organizations_url": "https://api.github.com/users/plopresti/orgs",
"repos_url": "https://api.github.com/users/plopresti/repos",
"events_url": "https://api.github.com/users/plopresti/events{/privacy}",
"received_events_url": "https://api.github.com/users/plopresti/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"This pull request is identical to 890a846; please cherry-pick that instead (see issue 59878).\r\n"
] | 2023-03-03T02:07:22 | 2023-03-03T19:37:54 | 2023-03-03T19:37:12 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59885",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59885",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59885.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59885.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59885/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59885/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59884 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59884/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59884/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59884/events | https://github.com/tensorflow/tensorflow/issues/59884 | 1,607,798,095 | I_kwDOArmXAs5f1Q1P | 59,884 | LinearOperatorInversion gives weird result on GPU for linear operators | {
"login": "trickiwoo",
"id": 121965696,
"node_id": "U_kgDOB0UMgA",
"avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/trickiwoo",
"html_url": "https://github.com/trickiwoo",
"followers_url": "https://api.github.com/users/trickiwoo/followers",
"following_url": "https://api.github.com/users/trickiwoo/following{/other_user}",
"gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions",
"organizations_url": "https://api.github.com/users/trickiwoo/orgs",
"repos_url": "https://api.github.com/users/trickiwoo/repos",
"events_url": "https://api.github.com/users/trickiwoo/events{/privacy}",
"received_events_url": "https://api.github.com/users/trickiwoo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
}
] | closed | false | {
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @trickiwoo, I was able to replicate the issue in Colab. Please find the gist [here](https://colab.sandbox.google.com/gist/synandi/60f540565de45d1b0cc988ed7819375d/59884.ipynb). It seems like we have to dig more into this issue, we will update soon here. Thank you! ",
"@trickiwoo, Apologies for the delay. The reason why the code is not producing an identity matrix on GPU is because of the differences in how floating-point arithmetic is performed in GPUs. GPUs use a different set of instructions and floating-point precision, which can result in slightly different rounding errors and numerical precision when performing matrix operations. Thank you!",
"\r\nThis 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.",
"@synandi \r\nThanks for the explanation! I understand that GPUs might use a different floating-point precision. However, it seems that in GPU it produces a significantly different result for the matrix inversion, and according to the output value of `y` (expected to be an identity matrix), it seems more than numerical precision issues?",
"@trickiwoo your matrix is not invertible. In particular, it has a nullspace vector `(0.5, -1, 0.5)`. The inverse operator is finding a pseudo-inverse (but we don't make any guarantees about which one), so multiplying it back out will not yield the identity. You're seeing different values on CPU vs GPU because they are returning different pseudo-inverses.",
"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/59884\">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/59884\">No</a>\n"
] | 2023-03-03T01:32:24 | 2023-05-02T19:43:37 | 2023-05-02T19:43:35 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.13.0-dev20230222
### Custom Code
Yes
### OS Platform and Distribution
Ubuntu 20.04.4 LTS
### Mobile device
_No response_
### Python version
3.9
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
8.2.4
### GPU model and memory
_No response_
### Current Behaviour?
```shell
LinearOperatorInversion gives wrong result on GPU for linear operators. In the codes below, `y` should be an identity matrix.
```
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
import numpy as np
n = 3
x = np.arange(n*n, dtype=np.float32)
x = np.reshape(x, [n,n])
p = np.dot(x.transpose(), x)
# Linear Operator
op = tf.linalg.LinearOperatorFullMatrix(p)
# Define a function to invert the operator
inv_op = tf.linalg.LinearOperatorInversion(op)
# Get the inverse operator
y = inv_op.matmul(op.to_dense())
print(y)
```
### Relevant log output
```shell
tf.Tensor(
[[ 1. 0.5 -0. ]
[ 0. 0. 0. ]
[ 0. 0.5 1. ]], shape=(3, 3), dtype=float32)
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59884/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59884/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59883 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59883/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59883/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59883/events | https://github.com/tensorflow/tensorflow/issues/59883 | 1,607,779,300 | I_kwDOArmXAs5f1MPk | 59,883 | some errors | {
"login": "hqt567",
"id": 63133599,
"node_id": "MDQ6VXNlcjYzMTMzNTk5",
"avatar_url": "https://avatars.githubusercontent.com/u/63133599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hqt567",
"html_url": "https://github.com/hqt567",
"followers_url": "https://api.github.com/users/hqt567/followers",
"following_url": "https://api.github.com/users/hqt567/following{/other_user}",
"gists_url": "https://api.github.com/users/hqt567/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hqt567/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hqt567/subscriptions",
"organizations_url": "https://api.github.com/users/hqt567/orgs",
"repos_url": "https://api.github.com/users/hqt567/repos",
"events_url": "https://api.github.com/users/hqt567/events{/privacy}",
"received_events_url": "https://api.github.com/users/hqt567/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1589976566,
"node_id": "MDU6TGFiZWwxNTg5OTc2NTY2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:micro",
"name": "comp:micro",
"color": "3e2eea",
"default": false,
"description": "Related to TensorFlow Lite Microcontrollers"
}
] | 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 @hqt567 Thanks for reporting the issue.\r\n\r\nCan you provide the information regarding the steps you have followed and the tutorial you have referred?\r\n\r\nIs it from www.tensorflow.org?\r\n\r\nThanks.",
"Thank You\r\nI am based on the following problems in the middle of the tutorial\r\nIs it from https://www.espressif.com/zh-hans/news/ESP32_meet_TensorFlow",
"@hqt567 The TFLite for Microcontrollers codebase hasbeen moved to a [stand-alone github repository](https://github.com/tensorflow/tflite-micro).\r\n\r\nPlease refer to the hello world example [here](https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/hello_world) for TFlite Micro. \r\n\r\nAlso, please refer to this [example](https://github.com/espressif/tflite-micro-esp-examples/tree/master/examples/hello_world) for hello world on ESP32.\r\n\r\nThanks.",
"Thank you, I will try again and give feedback。",
"\r\n@hqt567 Could you please let us know if the issue still persists.\r\n\r\nFeel free to close the issue if the it is resolved. Thanks!\r\n\r\n",
"I still can't use the TensorFlow example to directly generate the HelloWorld example that can be used by esp32. Later, I tried to use esp-idf to directly deploy the tflite-micro-esp-examples/examples/hello_world/ example but the following problems occurred when using idf.py build\r\n\r\nCMake Error at D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:245 (message):\r\n Failed to resolve component 'esp-nn'.\r\nCall Stack (most recent call first):\r\n D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:287 (__build_resolve_and_add_req)\r\n D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:288 (__build_expand_requirements)\r\n D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/build.cmake:574 (__build_expand_requirements)\r\n D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tools/cmake/project.cmake:440 (idf_build_process)\r\n CMakeLists.txt:4 (project)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"D:/exeespidf/Espressif/frameworks/esp-idf-v5.0.1/tflite-micro-esp-examples/examples/hello_world/build/CMakeFiles/CMakeOutput.log\".\r\ncmake failed with exit code 1, output of the command is in the d:\\exeespidf\\espressif\\frameworks\\esp-idf-v5.0.1\\tflite-micro-esp-examples\\examples\\hello_world\\build\\log\\idf_py_stderr_output_37188 and d:\\exeespidf\\espressif\\frameworks\\esp-idf-v5.0.1\\tflite-micro-esp-examples\\examples\\hello_world\\build\\log\\idf_py_stdout_output_37188",
"Secondly, as a beginner, I don't know the detailed steps to deploy the TensorFlow lite model to the esp32\r\n\r\nI would appreciate it if you could guide me with some tutorials.Thank You.",
"Hi @hqt567 Thanks for the information.\r\n\r\nCould you please post this issue in [espressif](https://github.com/espressif/tflite-micro-esp-examples/issues) repo for faster resolution.\r\n\r\nPlease refer to the examples for using tflite micro [here](https://www.tensorflow.org/lite/microcontrollers#explore_the_examples). Also tensorflow has [TensorFlow Lite for Microcontrollers Experiments](https://experiments.withgoogle.com/collection/tfliteformicrocontrollers) features work by developers combining Arduino and TensorFlow to exxamples and tools.\r\n\r\nFor esp32, you can refer to the espressif official examples [here](https://github.com/espressif/tflite-micro-esp-examples/tree/master/examples)\r\n\r\nThanks.\r\n\r\n",
"Thank you. I have solved my problem with your help, deployed the esp official HelloWorld model to the board.really appreciate your help.\r\n\r\nI want to know if there are other models of tflite micro that can be deployed on esp32, such as OCR recognition. I want to try to run models other than the templates provided by espressif official on esp32, such as some OCR models, but I don’t know. Know if tflite micro is ok, and how to do it.\r\n\r\n\r\nThanks again for your help.\r\n",
"Hi @hqt567, glad it helped.\r\n\r\nYou can check few lite example available in https://www.tensorflow.org/lite/examples and try them on esp32. Also, you can check tensorflow hub https://tfhub.dev/s?deployment-format=lite which provides pretrained lite models for different use cases.\r\n\r\nFeel free to close the issue if it is resolved.\r\n\r\nThanks.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59883\">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/59883\">No</a>\n"
] | 2023-03-03T01:09:00 | 2023-04-04T01:55:16 | 2023-04-04T01:55:12 | NONE | null | null | null | I try to generate the ESP32 example project, get the generated tfmicro library and example model, in the Tensorflow directory, run:
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_hello_world_esp_project
bash: /c/Users/lenovo/.profile: is a directory
lenovo@LAPTOP-9T3UKCR6 MINGW64 /d/Embedded_deep_learning/ESP32/tensorflow (master)
$ make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_hello_world_esp_project
tensorflow/lite/micro/tools/make/downloads/flatbuffers already exists, skipping the download.
tensorflow/lite/micro/tools/make/downloads/kissfft already exists, skipping the download.
tensorflow/lite/micro/tools/make/downloads/pigweed already exists, skipping the download.
process_begin: CreateProcess(D:\NewProgram\Git\Git\usr\bin\sh.exe, D:/NewProgram/Git/Git/usr/bin/sh.exe -c "python3 tensorflow/lite/micro/tools/make/specialize_files.py --base_files \"tensorflow/lite/micro/flatbuffer_utils.cc tensorflow/lite/micro/micro_log.cc tensorflow/lite/micro/micro_interpreter.cc tensorflow/lite/micro/system_setup.cc tensorflow/lite/micro/all_ops_resolver.cc tensorflow/lite/micro/micro_context.cc tensorflow/lite/micro/mock_micro_graph.cc tensorflow/lite/micro/micro_graph.cc tensorflow/lite/micro/micro_time.cc tensorflow/lite/micro/micro_allocation_info.cc tensorflow/lite/micro/recording_micro_allocator.cc tensorflow/lite/micro/micro_utils.cc tensorflow/lite/micro/micro_profiler.cc tensorflow/lite/micro/micro_string.cc tensorflow/lite/micro/micro_allocator.cc tensorflow/lite/micro/debug_log.cc tensorflow/lite/micro/fake_micro_context.cc tensorflow/lite/micro/micro_resource_variable.cc tensorflow/lite/micro/test_helpers.cc tensorflow/lite/micro/memory_helpers.cc tensorflow/lite/micro/test_helper_custom_ops.cc tensorflow/lite/micro/arena_allocator/recording_single_arena_buffer_allocator.cc tensorflow/lite/micro/arena_allocator/non_persistent_arena_buffer_allocator.cc tensorflow/lite/micro/arena_allocator/single_arena_buffer_allocator.cc tensorflow/lite/micro/arena_allocator/persistent_arena_buffer_allocator.cc tensorflow/lite/micro/memory_planner/non_persistent_buffer_planner_shim.cc tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc tensorflow/lite/micro/memory_planner/linear_memory_planner.cc tensorflow/lite/micro/tflite_bridge/op_resolver_bridge.cc tensorflow/lite/micro/tflite_bridge/flatbuffer_conversions_bridge.cc tensorflow/lite/micro/tflite_bridge/micro_error_reporter.cc tensorflow/lite/allocation.cc tensorflow/lite/allocation_test.cc tensorflow/lite/arena_planner.cc tensorflow/lite/arena_planner_test.cc tensorflow/lite/c/common_internal.cc tensorflow/lite/c/c_api_for_testing.cc tensorflow/lite/c/c_api_opaque.cc tensorflow/lite/c/c_api_opaque_internal.cc tensorflow/lite/c/c_api_signature_runner_test.cc tensorflow/lite/c/c_test.c tensorflow/lite/c/test_util.cc tensorflow/lite/core/api/error_reporter.cc tensorflow/lite/core/api/error_reporter_test.cc tensorflow/lite/core/api/flatbuffer_conversions.cc tensorflow/lite/core/api/flatbuffer_conversions_test.cc tensorflow/lite/core/api/op_resolver.cc tensorflow/lite/core/api/op_resolver_internal_test.cc tensorflow/lite/core/api/op_resolver_test.cc tensorflow/lite/core/api/tensor_utils.cc tensorflow/lite/core/async/async_signature_runner.cc tensorflow/lite/core/async/async_signature_runner_test.cc tensorflow/lite/core/async/async_subgraph.cc tensorflow/lite/core/async/async_subgraph_test.cc tensorflow/lite/core/async/backend_async_kernel_interface.cc tensorflow/lite/core/async/backend_async_kernel_interface_test.cc tensorflow/lite/core/async/c/task.cc tensorflow/lite/core/async/c/task_test.cc tensorflow/lite/core/async/interop/attribute_map_internal.cc tensorflow/lite/core/async/interop/attribute_map_internal_test.cc tensorflow/lite/core/async/interop/c/attribute_map.cc tensorflow/lite/core/async/interop/c/attribute_map_test.cc tensorflow/lite/core/async/interop/c/constants.cc tensorflow/lite/core/async/interop/c/types.cc tensorflow/lite/core/async/interop/c/types_test.cc tensorflow/lite/core/async/interop/reconcile_fns.cc tensorflow/lite/core/async/interop/reconcile_fns_test.cc tensorflow/lite/core/async/interop/variant.cc tensorflow/lite/core/async/interop/variant_test.cc tensorflow/lite/core/async/task_internal.cc tensorflow/lite/core/async/task_internal_test.cc tensorflow/lite/core/async/testing/test_backend.cc tensorflow/lite/core/c/builtin_op_data_test.cc tensorflow/lite/core/c/common.cc tensorflow/lite/core/c/common_test.cc tensorflow/lite/core/c/c_api.cc tensorflow/lite/core/c/c_api_experimental.cc tensorflow/lite/core/c/c_api_experimental_test.cc tensorflow/lite/core/c/c_api_test.cc tensorflow/lite/core/experimental/acceleration/configuration/c/gpu_plugin.cc tensorflow/lite/core/experimental/acceleration/configuration/c/gpu_plugin_test.cc tensorflow/lite/core/experimental/acceleration/configuration/c/nnapi_plugin.cc tensorflow/lite/core/experimental/acceleration/configuration/c/nnapi_plugin_test.cc tensorflow/lite/core/experimental/acceleration/configuration/c/xnnpack_plugin.cc tensorflow/lite/core/experimental/acceleration/configuration/c/xnnpack_plugin_test.cc tensorflow/lite/core/experimental/acceleration/configuration/delegate_registry.cc tensorflow/lite/core/experimental/acceleration/configuration/stable_delegate_registry.cc tensorflow/lite/core/experimental/acceleration/configuration/stable_delegate_registry_test.cc tensorflow/lite/core/interpreter.cc tensorflow/lite/core/interpreter_builder.cc tensorflow/lite/core/interpreter_experimental.cc tensorflow/lite/core/kernels/register.cc tensorflow/lite/core/model_builder.cc tensorflow/lite/core/model_test.cc tensorflow/lite/core/shims/c/shims_test_util.cc tensorflow/lite/core/shims/jni/jni_utils.cc tensorflow/lite/core/subgraph.cc tensorflow/lite/core/subgraph_test.cc tensorflow/lite/core/tools/verifier.cc tensorflow/lite/core/tools/verifier_internal.cc tensorflow/lite/core/tools/verifier_internal_test.cc tensorflow/lite/core/tools/verifier_test.cc tensorflow/lite/create_op_resolver_with_builtin_ops.cc tensorflow/lite/create_op_resolver_with_selected_ops.cc tensorflow/lite/delegates/coreml/builders/activation_layer_builder.cc tensorflow/lite/delegates/coreml/builders/add_op_builder.cc tensorflow/lite/delegates/coreml/builders/concatenation_op_builder.cc tensorflow/lite/delegates/coreml/builders/convolution_op_builder.cc tensorflow/lite/delegates/coreml/builders/dummy_op_builder.cc tensorflow/lite/delegates/coreml/builders/fully_connected_op_builder.cc tensorflow/lite/delegates/coreml/builders/hardswish_op_builder.cc tensorflow/lite/delegates/coreml/builders/mul_op_builder.cc tensorflow/lite/delegates/coreml/builders/op_builder.cc tensorflow/lite/delegates/coreml/builders/pad_op_builder.cc tensorflow/lite/delegates/coreml/builders/pooling_layer_builder.cc tensorflow/lite/delegates/coreml/builders/reshape_op_builder.cc tensorflow/lite/delegates/coreml/builders/resize_bilinear_op_builder.cc tensorflow/lite/delegates/coreml/builders/softmax_op_builder.cc tensorflow/lite/delegates/coreml/builders/threshold_layer_builder.cc tensorflow/lite/delegates/coreml/builders/util.cc tensorflow/lite/delegates/coreml/builders/util_test.cc tensorflow/lite/delegates/delegate_test.cc tensorflow/lite/delegates/delegate_test_util.cc tensorflow/lite/delegates/external/external_delegate.cc tensorflow/lite/delegates/flex/allowlisted_flex_ops.cc tensorflow/lite/delegates/flex/allowlisted_flex_ops_test.cc tensorflow/lite/delegates/flex/buffer_map.cc tensorflow/lite/delegates/flex/buffer_map_test.cc tensorflow/lite/delegates/flex/buffer_map_util.cc tensorflow/lite/delegates/flex/delegate.cc tensorflow/lite/delegates/flex/delegate_data.cc tensorflow/lite/delegates/flex/delegate_data_test.cc tensorflow/lite/delegates/flex/delegate_symbol.cc tensorflow/lite/delegates/flex/delegate_test.cc tensorflow/lite/delegates/flex/java/src/main/native/flex_delegate_jni.cc tensorflow/lite/delegates/flex/kernel.cc tensorflow/lite/delegates/flex/kernel_test.cc tensorflow/lite/delegates/flex/test_util.cc tensorflow/lite/delegates/flex/tflite_subgraph_execute.cc tensorflow/lite/delegates/flex/util.cc tensorflow/lite/delegates/flex/util_test.cc tensorflow/lite/delegates/gpu/api.cc tensorflow/lite/delegates/gpu/cl/api.cc tensorflow/lite/delegates/gpu/cl/buffer.cc tensorflow/lite/delegates/gpu/cl/buffer_test.cc tensorflow/lite/delegates/gpu/cl/cl_arguments.cc tensorflow/lite/delegates/gpu/cl/cl_arguments_test.cc tensorflow/lite/delegates/gpu/cl/cl_command_queue.cc tensorflow/lite/delegates/gpu/cl/cl_context.cc tensorflow/lite/delegates/gpu/cl/cl_device.cc tensorflow/lite/delegates/gpu/cl/cl_device_test.cc tensorflow/lite/delegates/gpu/cl/cl_event.cc tensorflow/lite/delegates/gpu/cl/cl_image_format.cc tensorflow/lite/delegates/gpu/cl/cl_kernel.cc tensorflow/lite/delegates/gpu/cl/cl_memory.cc tensorflow/lite/delegates/gpu/cl/cl_operation.cc tensorflow/lite/delegates/gpu/cl/cl_program.cc tensorflow/lite/delegates/gpu/cl/default/recordable_queue.cc tensorflow/lite/delegates/gpu/cl/default/util.cc tensorflow/lite/delegates/gpu/cl/egl_sync.cc tensorflow/lite/delegates/gpu/cl/environment.cc tensorflow/lite/delegates/gpu/cl/gl_interop.cc tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.cc tensorflow/lite/delegates/gpu/cl/inference_context.cc tensorflow/lite/delegates/gpu/cl/kernels/add_test.cc tensorflow/lite/delegates/gpu/cl/kernels/cast_test.cc tensorflow/lite/delegates/gpu/cl/kernels/cl_test.cc tensorflow/lite/delegates/gpu/cl/kernels/concat_test.cc tensorflow/lite/delegates/gpu/cl/kernels/converter.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_3x3_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_3x3_thin_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_4x4_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_test.cc tensorflow/lite/delegates/gpu/cl/kernels/convolution_transposed_thin_test.cc tensorflow/lite/delegates/gpu/cl/kernels/conv_constants_test.cc tensorflow/lite/delegates/gpu/cl/kernels/conv_generic_test.cc tensorflow/lite/delegates/gpu/cl/kernels/conv_weights_converter_test.cc tensorflow/lite/delegates/gpu/cl/kernels/cumsum_test.cc tensorflow/lite/delegates/gpu/cl/kernels/depthwise_conv_3x3_test.cc tensorflow/lite/delegates/gpu/cl/kernels/depthwise_conv_test.cc tensorflow/lite/delegates/gpu/cl/kernels/elementwise_test.cc tensorflow/lite/delegates/gpu/cl/kernels/fully_connected_test.cc tensorflow/lite/delegates/gpu/cl/kernels/gather_test.cc tensorflow/lite/delegates/gpu/cl/kernels/lstm_full_test.cc tensorflow/lite/delegates/gpu/cl/kernels/lstm_test.cc tensorflow/lite/delegates/gpu/cl/kernels/max_unpooling_test.cc tensorflow/lite/delegates/gpu/cl/kernels/mean_stddev_normalization_test.cc tensorflow/lite/delegates/gpu/cl/kernels/one_hot_test.cc tensorflow/lite/delegates/gpu/cl/kernels/padding_test.cc tensorflow/lite/delegates/gpu/cl/kernels/pooling_test.cc tensorflow/lite/delegates/gpu/cl/kernels/prelu_test.cc tensorflow/lite/delegates/gpu/cl/kernels/quantize_and_dequantize_test.cc tensorflow/lite/delegates/gpu/cl/kernels/reduce_test.cc tensorflow/lite/delegates/gpu/cl/kernels/relu_test.cc tensorflow/lite/delegates/gpu/cl/kernels/resampler_test.cc tensorflow/lite/delegates/gpu/cl/kernels/reshapex4_test.cc tensorflow/lite/delegates/gpu/cl/kernels/reshape_test.cc tensorflow/lite/delegates/gpu/cl/kernels/resize_test.cc tensorflow/lite/delegates/gpu/cl/kernels/select_v2_test.cc tensorflow/lite/delegates/gpu/cl/kernels/softmax1x1_test.cc tensorflow/lite/delegates/gpu/cl/kernels/softmax_test.cc tensorflow/lite/delegates/gpu/cl/kernels/space_to_depth_test.cc tensorflow/lite/delegates/gpu/cl/kernels/split_test.cc tensorflow/lite/delegates/gpu/cl/kernels/strided_slice_test.cc tensorflow/lite/delegates/gpu/cl/kernels/tile_test.cc tensorflow/lite/delegates/gpu/cl/kernels/transpose_test.cc tensorflow/lite/delegates/gpu/cl/kernels/winograd_test.cc tensorflow/lite/delegates/gpu/cl/opencl_wrapper.cc tensorflow/lite/delegates/gpu/cl/program_cache.cc tensorflow/lite/delegates/gpu/cl/qcom_thin_filter.cc tensorflow/lite/delegates/gpu/cl/tensor.cc tensorflow/lite/delegates/gpu/cl/tensor_test.cc tensorflow/lite/delegates/gpu/cl/tensor_type_util.cc tensorflow/lite/delegates/gpu/cl/testing/delegate_testing.cc tensorflow/lite/delegates/gpu/cl/testing/gpu_model_test.cc tensorflow/lite/delegates/gpu/cl/testing/internal_api_samples.cc tensorflow/lite/delegates/gpu/cl/testing/memory_sharing_sample.cc tensorflow/lite/delegates/gpu/cl/testing/performance_profiling.cc tensorflow/lite/delegates/gpu/cl/util.cc tensorflow/lite/tools/versioning/op_version_test.cc tensorflow/lite/tools/versioning/runtime_version.cc tensorflow/lite/tools/versioning/runtime_version_test.cc tensorflow/lite/type_to_tflitetype_test.cc tensorflow/lite/util.cc tensorflow/lite/util_test.cc\" --specialize_directory tensorflow/lite/micro/esp", ...) failed.
...........
make: tensorflow/lite/micro/tools/make/Makefile:585: pipe: No such file or directory
tensorflow/lite/micro/tools/make/Makefile:594: *** Error with specialize_files.py . Stop.
lenovo@LAPTOP-9T3UKCR6 MINGW64 /d/Embedded_deep_learning/ESP32/tensorflow (master)
$
I got the following error, I don't know how to solve the source of the error, hope I can get some valuable advice from you
Thank you | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59883/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59883/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59882 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59882/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59882/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59882/events | https://github.com/tensorflow/tensorflow/pull/59882 | 1,607,627,489 | PR_kwDOArmXAs5LLDam | 59,882 | r2.12 cherry-pick: 47b849cb89f "[Linaro:ARM_CI] Fix permissions problems on installing Python pkgs" | {
"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-03-02T22:41:29 | 2023-03-03T17:56:03 | 2023-03-03T17:55:58 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59882",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59882",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59882.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59882.patch",
"merged_at": "2023-03-03T17:55:58"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/47b849cb89f86cc0552840da552f907e9fe53f8a | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59882/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59882/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59881 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59881/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59881/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59881/events | https://github.com/tensorflow/tensorflow/pull/59881 | 1,607,554,515 | PR_kwDOArmXAs5LKzIF | 59,881 | r2.12 cherry-pick: [INTEL oneDNN][Bug Fix] Add index-validity check for min-max tensors for quantized oneDNN ops and related tests #59581 | {
"login": "venkat2469",
"id": 104534215,
"node_id": "U_kgDOBjsQxw",
"avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/venkat2469",
"html_url": "https://github.com/venkat2469",
"followers_url": "https://api.github.com/users/venkat2469/followers",
"following_url": "https://api.github.com/users/venkat2469/following{/other_user}",
"gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}",
"starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions",
"organizations_url": "https://api.github.com/users/venkat2469/orgs",
"repos_url": "https://api.github.com/users/venkat2469/repos",
"events_url": "https://api.github.com/users/venkat2469/events{/privacy}",
"received_events_url": "https://api.github.com/users/venkat2469/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-03-02T21:46:30 | 2023-03-02T22:11:26 | 2023-03-02T22:11:17 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59881",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59881",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59881.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59881.patch",
"merged_at": "2023-03-02T22:11:17"
} | [INTEL oneDNN][Bug Fix] Add index-validity check for min-max tensors for quantized oneDNN ops and related tests #59581 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59881/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59881/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59880 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59880/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59880/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59880/events | https://github.com/tensorflow/tensorflow/pull/59880 | 1,607,492,378 | PR_kwDOArmXAs5LKlF0 | 59,880 | [tosa] fix strided_slice legalization | {
"login": "Tai78641",
"id": 6504206,
"node_id": "MDQ6VXNlcjY1MDQyMDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6504206?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tai78641",
"html_url": "https://github.com/Tai78641",
"followers_url": "https://api.github.com/users/Tai78641/followers",
"following_url": "https://api.github.com/users/Tai78641/following{/other_user}",
"gists_url": "https://api.github.com/users/Tai78641/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tai78641/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tai78641/subscriptions",
"organizations_url": "https://api.github.com/users/Tai78641/orgs",
"repos_url": "https://api.github.com/users/Tai78641/repos",
"events_url": "https://api.github.com/users/Tai78641/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tai78641/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 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": 4651658080,
"node_id": "LA_kwDOArmXAs8AAAABFUKrYA",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-tosa",
"name": "comp:lite-tosa",
"color": "bfdadc",
"default": false,
"description": "TFLite TOSA conversion issues"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @rsuderman Can you please review this PR ? Thank you!",
"Hi @Tai78641 Can you please resolve conflicts? Thank you!",
"rebased"
] | 2023-03-02T21:06:17 | 2023-05-30T15:58:51 | 2023-05-26T04:56:59 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59880",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59880",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59880.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59880.patch",
"merged_at": "2023-05-26T04:56:59"
} | by skipping stride=1 dimensions in the reshape layer and avoid unnecessary rank blowup in the reshaped tensors.
Change-Id: I9b6f0220238d10d99125fef1f1db8ac58fabe71a
Signed-off-by: Tai Ly <tai.ly@arm.com> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59880/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59880/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59879 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59879/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59879/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59879/events | https://github.com/tensorflow/tensorflow/issues/59879 | 1,607,439,210 | I_kwDOArmXAs5fz5Nq | 59,879 | Tensorflow int8 conversion error for segmentation U-Net | {
"login": "david507huang",
"id": 126821900,
"node_id": "U_kgDOB48mDA",
"avatar_url": "https://avatars.githubusercontent.com/u/126821900?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/david507huang",
"html_url": "https://github.com/david507huang",
"followers_url": "https://api.github.com/users/david507huang/followers",
"following_url": "https://api.github.com/users/david507huang/following{/other_user}",
"gists_url": "https://api.github.com/users/david507huang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/david507huang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david507huang/subscriptions",
"organizations_url": "https://api.github.com/users/david507huang/orgs",
"repos_url": "https://api.github.com/users/david507huang/repos",
"events_url": "https://api.github.com/users/david507huang/events{/privacy}",
"received_events_url": "https://api.github.com/users/david507huang/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@david507huang,\r\n In the mentioned comment I did not see the inclusion of Select tf ops.\r\nCould you please try to add the below snippet in your code and let us know the outcome. \r\n\r\n```\r\nconverter.target_spec.supported_ops = [\r\n tf.lite.OpsSet.TFLITE_BUILTINS_INT8, # enable TensorFlow Lite ops.\r\n tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops.\r\n]\r\ntflite_model = converter.convert()\r\n```\r\nAlso kindly note that all ops are not available right now in INT8. Thank you!",
"Still the same errors. I tried converting the model to frozen graph and then to tflite. But the final tflite model outputs incorrect output and runs very slowly. ",
"Hi @david507huang \r\n\r\nSorry for the delayed response.\r\n\r\nThe conversion error is not provided. If it is successfully converted, can you provide more information regarding the results obtained and on which platform inference is done.\r\n\r\nAlso, if possible can you share a reproducible gist as the code provided is not reproducible since it has other dependencies.\r\n\r\nThanks.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59879\">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/59879\">No</a>\n"
] | 2023-03-02T20:27:02 | 2023-04-01T01:54:17 | 2023-04-01T01:54:14 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10
- TensorFlow installation (pip package or built from source):
pip package
- TensorFlow library (version, if pip package or github SHA, if built from source):
- TensorFlow 2.11.0, pip package
### 2. Code
Provide code to help us reproduce your issues using one of the following options:
#### Option B: Paste your code here
import cv2
import numpy as np
from matplotlib import pyplot as plt
import tensorflow as tf
from tensorflow import keras
from mss import mss
from PIL import Image
import os
def U_Net (o_w, o_h, o_c, t_w, t_h, t_c, num_layers, initial_ch, deep_sup):
global model
def encoder(e_in, filters, kernel_size=(3, 3), padding="same", strides=1):
e = keras.layers.Conv2D(filters, kernel_size, padding=padding, strides=strides, activation="relu")(e_in)
skip_out = keras.layers.Conv2D(filters, kernel_size, padding=padding, strides=strides, activation="relu")(e)
e_out = keras.layers.MaxPool2D((2, 2), (2, 2))(skip_out)
return e_out, skip_out
def bridge(bridge_in, filters, kernel_size=(3, 3), padding="same", strides=1):
b = keras.layers.Conv2D(filters, kernel_size, padding=padding, strides=strides, activation="relu")(bridge_in)
bridge_out = keras.layers.Conv2D(filters, kernel_size, padding=padding, strides=strides, activation="relu")(b)
return bridge_out
def decoder(d_in, skip_in, filters, kernel_size=(3, 3), padding="same", strides=1):
up_sampled = keras.layers.UpSampling2D((2, 2))(d_in)
up_sampled_reshaped = tf.keras.layers.experimental.preprocessing.Resizing(int((skip_in.shape[1])*t_h/o_h), int((skip_in.shape[2])*t_w/o_w), interpolation="bilinear", name=None)(up_sampled)
skip_in_reshaped = tf.keras.layers.experimental.preprocessing.Resizing(up_sampled_reshaped.shape[1], up_sampled_reshaped.shape[2], interpolation="bilinear", name=None)(skip_in)
concatenated = keras.layers.Concatenate()([up_sampled_reshaped, skip_in_reshaped])
d = keras.layers.Conv2D(filters, kernel_size, padding=padding, strides=strides, activation="relu")(concatenated)
d_out = keras.layers.Conv2D(filters, kernel_size, padding=padding, strides=strides, activation="relu")(d)
return d_out
inputs = keras.layers.Input((o_h, o_w, o_c))
dict = {}
num_layers_str = str(num_layers-1)
num_layers_minus2_str = str(num_layers-3)
e_out_end = "e_out"+num_layers_str
d_out_end = "d_out"+num_layers_str
d_out_end_minus2 = "d_out"+num_layers_minus2_str
dict['e_out0'] = inputs
for i in range(1,(num_layers)):
dict['e_out%s'%i], dict['skip_out%s'%i] = encoder((dict['e_out%s'%(i-1)]), (0.5*initial_ch*(2**i)))
bridge_out = bridge((dict[e_out_end]), (0.5*initial_ch*(2**num_layers)))
dict['d_out0'] = bridge_out
for n in range(1,(num_layers)):
dict['d_out%s'%n] = decoder((dict['d_out%s'%(n-1)]), (dict['skip_out%s'%(num_layers-n)]), (0.5*initial_ch*(2**(num_layers-n))))
outputs = keras.layers.Conv2D(t_c, (1, 1), padding="same", activation="sigmoid")(dict[d_out_end])
if deep_sup == 1:
ds = keras.layers.UpSampling2D((4, 4))(dict[d_out_end_minus2])
ds = keras.layers.Conv2D(t_c, (1, 1), padding="same", activation="sigmoid")(ds)
outputsconcat = tf.keras.layers.concatenate([outputs, ds], axis=1)
model = keras.models.Model(inputs, outputsconcat)
if deep_sup == 0:
model = keras.models.Model(inputs, outputs)
return model
def modelcreator(o_w, o_h, o_c, t_w, t_h, t_c, model_type, num_layers, initial_ch, deep_sup):
global current_model
# For U-Net:
if model_type == "U-Net":
current_model = U_Net (o_w, o_h, o_c, t_w, t_h, t_c, num_layers, initial_ch, deep_sup)
return current_model
#################
(o_w, o_h, o_c, t_w, t_h, t_c, model_type, num_layers, initial_ch, deep_sup, gan_onoff) = (500,500,3,500,500,3,"U-Net",5,16,1,0)
current_model = modelcreator(o_w, o_h, o_c, t_w, t_h, t_c, model_type, num_layers, initial_ch, deep_sup, gan_onoff)
current_model.load_weights(Model_directory)
current_model.summary()
############
image_path =
target_path =
image_array = []
target_array = []
for i in os.listdir(image_path):
## Reading Image
image = cv2.imread(image_path + i)
image = cv2.resize(image, (o_w, o_h))
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
image = image / 255.0
image_array.append(image)
for i in os.listdir(target_path):
## Reading Mask
target = cv2.imread(target_path + i)
target = cv2.resize(target, (o_w, o_h))
target = cv2.cvtColor(target, cv2.COLOR_BGR2RGB)
## Normalizaing
target = target / 255.0
target = np.array(target)
target2 = np.array(target)
targetconcat = np.concatenate((target, target2), axis=1)
target = targetconcat
target_array.append(target)
representative_data = image_array, target_array
################
def representative_data_gen():
for i in range(len(image_array)):
# Preprocess a single image
img = image_array[i]
img = np.asarray(img)[None, ...] # Add batch dimension
img = img.astype(np.float32) # Convert to float32
yield [img] # Yield the preprocessed image as a list
#################
converter = tf.lite.TFLiteConverter.from_keras_model(current_model)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = representative_data_gen
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.int8
converter.inference_output_type = tf.int8
tflite_quant_model = converter.convert()
#################
### 3. Failure after conversion
If the conversion is successful, but the generated model is wrong, then state what is wrong:
Resulting model yields bad results and takes more than 5 min to process one image.
### 4. (optional) RNN conversion support
If converting TF RNN to TFLite fused RNN ops, please prefix [RNN] in the title.
### 5. (optional) Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
WARNING:absl:Found untraced functions such as _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op while saving (showing 5 of 20). These functions will not be directly callable after loading.
INFO:tensorflow:Assets written to: C:\Users\David\AppData\Local\Temp\tmpl1ifyrjo\assets
INFO:tensorflow:Assets written to: C:\Users\David\AppData\Local\Temp\tmpl1ifyrjo\assets
C:\Users\David\AppData\Local\miniconda3\lib\site-packages\tensorflow\lite\python\convert.py:765: UserWarning: Statistics for quantized inputs were expected, but not specified; continuing anyway.
warnings.warn("Statistics for quantized inputs were expected, but not "
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59879/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59879/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59878 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59878/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59878/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59878/events | https://github.com/tensorflow/tensorflow/issues/59878 | 1,607,406,043 | I_kwDOArmXAs5fzxHb | 59,878 | ERROR: tensorflow/tensorflow/compiler/xla/service/gpu/runtime/BUILD:146:11: in deps attribute of cc_library rule //tensorflow/compiler/xla/service/gpu/runtime:gemm: target '//tensorflow/compiler/xla/service/gpu:non_atomically_upgradeable_rw_lock' does not exist | {
"login": "vyepishov1",
"id": 98013766,
"node_id": "U_kgDOBdeSRg",
"avatar_url": "https://avatars.githubusercontent.com/u/98013766?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vyepishov1",
"html_url": "https://github.com/vyepishov1",
"followers_url": "https://api.github.com/users/vyepishov1/followers",
"following_url": "https://api.github.com/users/vyepishov1/following{/other_user}",
"gists_url": "https://api.github.com/users/vyepishov1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vyepishov1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vyepishov1/subscriptions",
"organizations_url": "https://api.github.com/users/vyepishov1/orgs",
"repos_url": "https://api.github.com/users/vyepishov1/repos",
"events_url": "https://api.github.com/users/vyepishov1/events{/privacy}",
"received_events_url": "https://api.github.com/users/vyepishov1/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 1205615612,
"node_id": "MDU6TGFiZWwxMjA1NjE1NjEy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:%20ubuntu/linux",
"name": "subtype: ubuntu/linux",
"color": "b619ea",
"default": false,
"description": "Ubuntu/Linux Build/Installation Issues"
},
{
"id": 5206407904,
"node_id": "LA_kwDOArmXAs8AAAABNlN64A",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.12",
"name": "TF 2.12",
"color": "c5def5",
"default": false,
"description": "For issues related to Tensorflow 2.12"
}
] | closed | false | {
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"\"Me too\"\r\n",
"Backporting the relevant support from the master branch seems to do the trick:\r\n\r\n[naurwlock.patch](https://github.com/tensorflow/tensorflow/files/10877485/naurwlock.patch)\r\n\r\nI have also created a [pull request](https://github.com/tensorflow/tensorflow/pull/59885).",
"@plopresti Thank you for creating the pull request. We can merge your fix to master first, run all the tests (including nightly tests). If everything is green we can send the cherry pick to r2.12 for review. WDYT?\r\n@reedwm Could you please take a look and share your guidance?",
"Looks like this was broken by https://github.com/tensorflow/tensorflow/pull/59842, which cherry-picked 740005d28413923af3f38f7d6401f7f99d26f8f3 into TF 2.12. The PR uses a BUILD target introduced by 890a846bdc26e0e1e66120adb1e2fb2aa33c7323, which was not cherry-picked, which is why the error is occurring. Either https://github.com/tensorflow/tensorflow/pull/59842 should be rolled back or 890a846bdc26e0e1e66120adb1e2fb2aa33c7323 (and potentially other commits 740005d28413923af3f38f7d6401f7f99d26f8f3 relies on) should also be cherry-picked.\r\n\r\n@venkat2469 @rishikasinha-tf @anlunx, how should this be handled?",
"@learning-to-play @reedwm Yeah, my pull request is identical to 890a846. I can confirm that this change alone fixes this PR, and there are no further dependencies. I suggest cherry-picking 890a846 into r2.12.",
"This is very helpful, thank you both for the additional information!",
"Created https://github.com/tensorflow/tensorflow/pull/59889.",
"Hi, @vyepishov1 \r\n\r\nIt seems like this PR [#59889](https://github.com/tensorflow/tensorflow/pull/59889) got merged so could you please try to build tensorflow from source now and check whether are you getting any error or not ? Thank you!",
"> Hi, @vyepishov1\r\n> \r\n> It seems like this PR [#59889](https://github.com/tensorflow/tensorflow/pull/59889) got merged so could you please try to build tensorflow from source now and check whether are you getting any error or not ? Thank you!\r\n\r\nHi @gaikwadrahul8,\r\n\r\nI have managed to rebuild recently, so it seems to work now. Thank you for quick response and support!",
"Hi, @vyepishov1 \r\n\r\nGood to hear that and thank you for the confirmation, Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? or if you need any further assistance please let us know? Thank you!\r\n",
"> \r\n\r\nHi @gaikwadrahul8,\r\n\r\nMy apologies for the last unclear answer.\r\nYes, the issue has been resolved.\r\nI was able to both build the new version of tensorflow as well as test it.\r\nThank you for your help!",
"Hi, @vyepishov1 \r\n\r\nNo problem and Good to hear that your issue got resolved and thank you for the confirmation so now I'm closing this issue from my end. If you need any further assistance please feel free to create new issue. Thank you!",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59878\">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/59878\">No</a>\n"
] | 2023-03-02T19:58:49 | 2023-03-17T08:07:26 | 2023-03-17T08:07:23 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
2.12
### Custom Code
No
### OS Platform and Distribution
Linux Ubuntu 22.04
### Mobile device
_No response_
### Python version
3.10
### Bazel version
5.3.0
### GCC/Compiler version
11.3.0
### CUDA/cuDNN version
12.1/8.8.0.121
### GPU model and memory
NVIDIA GeForce 940MX
### Current Behaviour?
```shell
$ bazel build --config=mkl --config=opt //tensorflow/tools/pip_package:build_pip_package
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=211
INFO: Reading rc options for 'build' from tensorflow/.bazelrc:
Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from tensorflow/.bazelrc:
'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from tensorflow/.tf_configure.bazelrc:
'build' options: --action_env PYTHON_BIN_PATH=~/Documents/dev/programs/anaconda3/envs/tf/bin/python3 --action_env PYTHON_LIB_PATH=~/Documents/dev/programs/anaconda3/envs/tf/lib/python3.10/site-packages --python_path=~/Documents/dev/programs/anaconda3/envs/tf/bin/python3 --action_env CUDA_TOOLKIT_PATH=/usr/local/cuda-12.1 --action_env TF_CUDA_COMPUTE_CAPABILITIES=5.0 --action_env LD_LIBRARY_PATH=/usr/lib/libreoffice/program:/usr/local/cuda/targets/x86_64-linux/lib:/usr/lib/x86_64-linux-gnu --action_env GCC_HOST_COMPILER_PATH=/usr/bin/x86_64-linux-gnu-gcc-11 --config=cuda
INFO: Reading rc options for 'build' from ~/Documents/dev/git/tensorflow/.bazelrc:
'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils
INFO: Found applicable config definition build:short_logs in file ~/Documents/dev/git/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:cuda in file ~/Documents/dev/git/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:mkl in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=build_with_mkl=true --define=enable_mkl=true --define=tensorflow_mkldnn_contraction_kernel=0 --define=build_with_openmp=true -c opt
INFO: Found applicable config definition build:opt in file ~/Documents/dev/git/tensorflow/.tf_configure.bazelrc: --copt=-Wno-sign-compare --host_copt=-Wno-sign-compare
INFO: Found applicable config definition build:linux in file ~/Documents/dev/git/tensorflow/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file ~/Documents/dev/git/tensorflow/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/91d765cad5599f9710973d3e34d4dc22583e2e79.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/10939d1d580b9d3c9c2f3539c6bdb39f408179c0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
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/curl.haxx.se/download/curl-7.88.0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/boringssl/archive/b9232f9e27e5668bc0414879dcdedb2a59ea75f2.tar.gz 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/659147817805d17c7be2d60bd7bbca7e780f9c82.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/nvidia/nccl/archive/v2.16.2-1.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
ERROR: ~/Documents/dev/git/tensorflow/tensorflow/compiler/xla/service/gpu/runtime/BUILD:146:11: in deps attribute of cc_library rule //tensorflow/compiler/xla/service/gpu/runtime:gemm: target '//tensorflow/compiler/xla/service/gpu:non_atomically_upgradeable_rw_lock' does not exist
ERROR: ~/Documents/dev/git/tensorflow/tensorflow/compiler/xla/service/gpu/runtime/BUILD:146:11: Analysis of target '//tensorflow/compiler/xla/service/gpu/runtime:gemm' failed
INFO: Repository cudnn_frontend_archive instantiated at:
~/Documents/dev/git/tensorflow/WORKSPACE:15:14: in <toplevel>
~/Documents/dev/git/tensorflow/tensorflow/workspace2.bzl:967:21: in workspace
~/Documents/dev/git/tensorflow/tensorflow/workspace2.bzl:171:20: in _tf_repositories
~/Documents/dev/git/tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
~/Documents/dev/git/tensorflow/third_party/repo.bzl:89:35: in <toplevel>
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted:
INFO: Elapsed time: 92.916s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (602 packages loaded, 36603 targets configured)
Fetching https://github.com/NVIDIA/cudnn-frontend/archive/refs/tags/v0.7.3.zip; 8,793,160B 8s
```
### Standalone code to reproduce the issue
```shell
./configure
bazel build --config=mkl --config=opt //tensorflow/tools/pip_package:build_pip_package
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59878/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59878/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59877 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59877/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59877/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59877/events | https://github.com/tensorflow/tensorflow/pull/59877 | 1,607,363,403 | PR_kwDOArmXAs5LKJL_ | 59,877 | #undef logging macros in case they have been defined elsewhere | {
"login": "ShuaiShao93",
"id": 7556010,
"node_id": "MDQ6VXNlcjc1NTYwMTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/7556010?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShuaiShao93",
"html_url": "https://github.com/ShuaiShao93",
"followers_url": "https://api.github.com/users/ShuaiShao93/followers",
"following_url": "https://api.github.com/users/ShuaiShao93/following{/other_user}",
"gists_url": "https://api.github.com/users/ShuaiShao93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShuaiShao93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShuaiShao93/subscriptions",
"organizations_url": "https://api.github.com/users/ShuaiShao93/orgs",
"repos_url": "https://api.github.com/users/ShuaiShao93/repos",
"events_url": "https://api.github.com/users/ShuaiShao93/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShuaiShao93/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1133285679,
"node_id": "MDU6TGFiZWwxMTMzMjg1Njc5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:xla",
"name": "comp:xla",
"color": "0052cc",
"default": false,
"description": "XLA"
},
{
"id": 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/59877/checks?check_run_id=11725913953) 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 @rdzhabarov Can you please review this PR ? Thank you!",
"Hi @rdzhabarov Can you please review this PR ? Thank you!"
] | 2023-03-02T19:21:17 | 2023-05-23T17:45:29 | 2023-05-23T17:45:26 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59877",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59877",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59877.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59877.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59877/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59877/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59876 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59876/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59876/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59876/events | https://github.com/tensorflow/tensorflow/pull/59876 | 1,607,358,803 | PR_kwDOArmXAs5LKIM- | 59,876 | Add override qualifier to Device | {
"login": "ShuaiShao93",
"id": 7556010,
"node_id": "MDQ6VXNlcjc1NTYwMTA=",
"avatar_url": "https://avatars.githubusercontent.com/u/7556010?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShuaiShao93",
"html_url": "https://github.com/ShuaiShao93",
"followers_url": "https://api.github.com/users/ShuaiShao93/followers",
"following_url": "https://api.github.com/users/ShuaiShao93/following{/other_user}",
"gists_url": "https://api.github.com/users/ShuaiShao93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShuaiShao93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShuaiShao93/subscriptions",
"organizations_url": "https://api.github.com/users/ShuaiShao93/orgs",
"repos_url": "https://api.github.com/users/ShuaiShao93/repos",
"events_url": "https://api.github.com/users/ShuaiShao93/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShuaiShao93/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
},
{
"id": 1478826728,
"node_id": "MDU6TGFiZWwxNDc4ODI2NzI4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core",
"name": "comp:core",
"color": "024391",
"default": false,
"description": "issues related to core part of tensorflow"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"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/59876/checks?check_run_id=11725816657) of the CLA check for more information.\n\nFor the most up to date status, view the checks section at the bottom of the pull request."
] | 2023-03-02T19:17:06 | 2023-03-07T20:05:00 | 2023-03-07T20:05:00 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59876",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59876",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59876.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59876.patch",
"merged_at": "2023-03-07T20:04:59"
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59876/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59876/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59875 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59875/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59875/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59875/events | https://github.com/tensorflow/tensorflow/pull/59875 | 1,607,334,130 | PR_kwDOArmXAs5LKCxM | 59,875 | r2.12 cherry-pick: dfe7acf2207 "Add tag filters to exclude tests tagged no_oss_py3x" | {
"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-03-02T18:59:45 | 2023-03-02T19:53:50 | 2023-03-02T19:26:19 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59875",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59875",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59875.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59875.patch",
"merged_at": "2023-03-02T19:26:19"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/dfe7acf2207708d831ceb1acb6d16b7b096d8383 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59875/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59875/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59874 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59874/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59874/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59874/events | https://github.com/tensorflow/tensorflow/pull/59874 | 1,607,147,109 | PR_kwDOArmXAs5LJakE | 59,874 | [Linaro:ARM_CI] Fix for patchelf permission denied | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-02T16:45:06 | 2023-04-12T16:07:58 | 2023-03-02T21:42:08 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59874",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59874",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59874.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59874.patch",
"merged_at": "2023-03-02T21:42:08"
} | Ensure the so files are writable by the use of chmod | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59874/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59874/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59873 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59873/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59873/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59873/events | https://github.com/tensorflow/tensorflow/pull/59873 | 1,607,080,668 | PR_kwDOArmXAs5LJMCO | 59,873 | [Linaro:ARM_CI] Fix permissions problems on installing Python pkgs | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-02T16:06:47 | 2023-04-12T16:08:02 | 2023-03-02T22:34:50 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59873",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59873",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59873.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59873.patch",
"merged_at": "2023-03-02T22:34:50"
} | Ensure build user can install and uninstall Python packages not using --user as that would not be seen by TensorFlow build | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59873/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59873/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59872 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59872/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59872/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59872/events | https://github.com/tensorflow/tensorflow/pull/59872 | 1,607,071,287 | PR_kwDOArmXAs5LJKAh | 59,872 | r2.12 cherry-pick: 1d02e910b9e "[Linaro:ARM_CI] Revert adding install of tensorflow-io" | {
"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-03-02T16:01:07 | 2023-03-02T19:53:42 | 2023-03-02T19:25:42 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59872",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59872",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59872.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59872.patch",
"merged_at": "2023-03-02T19:25:42"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/1d02e910b9e483e64da2323eae2e1b047edfbd82 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59872/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59872/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59871 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59871/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59871/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59871/events | https://github.com/tensorflow/tensorflow/pull/59871 | 1,607,048,822 | PR_kwDOArmXAs5LJFXx | 59,871 | r2.12 cherry-pick: 2b0a8a210a1 "[Linaro:ARM_CI] Fix use of updated protobuf" | {
"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-03-02T15:47:45 | 2023-03-02T19:53:31 | 2023-03-02T19:24:32 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59871",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59871",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59871.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59871.patch",
"merged_at": "2023-03-02T19:24:32"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/2b0a8a210a1e14719f17ec62cbbc5b5ef9cf8a10 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59871/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59871/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59870 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59870/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59870/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59870/events | https://github.com/tensorflow/tensorflow/issues/59870 | 1,606,945,129 | I_kwDOArmXAs5fyAlp | 59,870 | BatchToSpaceND and SpaceToBatchND ERROR_GPU_NOT_COMPATIBLE | {
"login": "ShashmurinSergey",
"id": 120723316,
"node_id": "U_kgDOBzIXdA",
"avatar_url": "https://avatars.githubusercontent.com/u/120723316?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShashmurinSergey",
"html_url": "https://github.com/ShashmurinSergey",
"followers_url": "https://api.github.com/users/ShashmurinSergey/followers",
"following_url": "https://api.github.com/users/ShashmurinSergey/following{/other_user}",
"gists_url": "https://api.github.com/users/ShashmurinSergey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShashmurinSergey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShashmurinSergey/subscriptions",
"organizations_url": "https://api.github.com/users/ShashmurinSergey/orgs",
"repos_url": "https://api.github.com/users/ShashmurinSergey/repos",
"events_url": "https://api.github.com/users/ShashmurinSergey/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShashmurinSergey/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 4511033337,
"node_id": "LA_kwDOArmXAs8AAAABDODn-Q",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10",
"name": "TF 2.10",
"color": "C15088",
"default": false,
"description": ""
}
] | 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": "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": "pkgoogle",
"id": 132095473,
"node_id": "U_kgDOB9-d8Q",
"avatar_url": "https://avatars.githubusercontent.com/u/132095473?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pkgoogle",
"html_url": "https://github.com/pkgoogle",
"followers_url": "https://api.github.com/users/pkgoogle/followers",
"following_url": "https://api.github.com/users/pkgoogle/following{/other_user}",
"gists_url": "https://api.github.com/users/pkgoogle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pkgoogle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pkgoogle/subscriptions",
"organizations_url": "https://api.github.com/users/pkgoogle/orgs",
"repos_url": "https://api.github.com/users/pkgoogle/repos",
"events_url": "https://api.github.com/users/pkgoogle/events{/privacy}",
"received_events_url": "https://api.github.com/users/pkgoogle/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"This is my model. You can do conversion with my code and reproduce my result.\r\nhttps://drive.google.com/file/d/1nTVfurH8gEjSU8WOx7XHsCqMJwT5g2IT/view?usp=sharing",
"Hi @ShashmurinSergey, I was able to replicate the issue in Colab using TF v2.10, TF v2.11 and tf-nightly(2.13.0.dev20230305). Please find the gists [here(2.10)](https://colab.sandbox.google.com/gist/synandi/888a32265c1e6136f29fadb263c1e3b6/59870_2-10.ipynb), [here(2.11) ](https://colab.sandbox.google.com/gist/synandi/3c247df43db3d42d47644e4735b2af86/59870.ipynb) and [here(tf-nightly)](https://colab.sandbox.google.com/gist/synandi/32e0fddd8e463066a2776277e9e17495/59870_nightly.ipynb). Thank you!",
"@synandi Yes, replicate is correct, Thank you!\r\nWhat can you suggest to solve the problem?",
"Hi @ShashmurinSergey \r\n\r\nSorry for the delayed response.\r\n\r\nThe `BATCH_TO_SPACE_ND` and `SPACE_TO_BATCH_ND` are not compatible on GPU. Please find the list of of supported ops on GPU [here](https://www.tensorflow.org/lite/performance/gpu#supported_ops). \r\n\r\nAlso, as given in the [documentation](https://www.tensorflow.org/lite/performance/gpu#optimizing_for_gpus),\r\n\r\n> Reshape operations - Some operations that are quick on a CPU may have a high cost for the GPU on mobile devices. Reshape operations are particularly expensive to run, including BATCH_TO_SPACE, SPACE_TO_BATCH, SPACE_TO_DEPTH, and so forth. You should closely examine use of reshape operations, and consider that may have been applied only for exploring data or for early iterations of your model. Removing them can significantly improve performance.\r\n\r\nThe list of ops in the model compatible with GPU can be found using [Analyzer](https://www.tensorflow.org/lite/guide/model_analyzer#check_gpu_delegate_compatibility). Please find the [gist](https://colab.sandbox.google.com/gist/pjpratik/0eb0c5e3c148065331966412c4040d51/59870.ipynb#scrollTo=jqZ1mD1ZJhlV) on the usage of the tool for your use case.\r\n\r\nThanks. ",
"Hi @pjpratik!\r\nThank you for the detailed answer!\r\nWhy do these layers appear? After all, everything works correctly when we use dilation=1.\r\n\r\nIs there any way for me to convert this model to TFLite with GPU support? Can I somehow remove these layers?",
"Hi @ShashmurinSergey \r\n\r\nThey are commonly used in conv2d transpose operation AFAIK.\r\n\r\nHave you tried in latest TF 2.11 and TF nightly with dilation!=1 and see if issue still exists?\r\n\r\nThanks.",
"@pjpratik But I am not using Conv2d transpose, the error occurs on Conv2d layers with dilation=2, 4, 8.\r\nI am using a Docker container with the latest version of TensorFlow, I also tried using a container with tf-nightly image, but I still get the same error.\r\nIs there any other way to convert Conv2d layer with dilation != 1 without adding BatchToSpaceND and SpaceToBatchND layers?",
"Hi @ShashmurinSergey \r\n\r\nThanks for the information. I have created a toy model with dilation = 1 and dilation = 4. Please find the gist [here](https://colab.sandbox.google.com/gist/pjpratik/8ffe5de6e2caca1e33284deab31949e1/59870.ipynb).\r\n\r\nThe Conv2D adds the BatchToSpaceND and SpaceToBatchND ops when the dilation rate !=1 for appropriate padding to avoid holes in the output.\r\n\r\nModel with dilation = 4\r\n\r\n![model (2) tflite](https://user-images.githubusercontent.com/118897289/225080710-026331a7-e7a6-4fe3-8344-261706a63a14.png)\r\n\r\nModel with dilation = 1\r\n\r\n![model (1) tflite (1)](https://user-images.githubusercontent.com/118897289/225080820-a2e29175-c4fb-45e3-93dc-b1a71660dfb3.png)\r\n\r\nThis can also be observed at \r\n\r\nhttps://github.com/tensorflow/tensorflow/blob/d5b57ca93e506df258271ea00fc29cf98383a374/tensorflow/python/ops/nn_ops.py#L1465\r\n\r\nas a result those ops are added which are [not compatible](https://www.tensorflow.org/lite/performance/gpu#supported_ops_) for tflite GPU support.\r\n\r\nThanks.",
"Hi @pjpratik!\r\nThank for your answer!\r\nAm I correct in understanding that there is no workaround for converting Conv2d with dilation != 1 with GPU support? Could this be possible in the future?",
"@ShashmurinSergey That could be on roadmap. I am not sure about it.\r\n\r\n@sachinprasadhs Could you please look into this. Thanks."
] | 2023-03-02T14:47:58 | 2023-07-24T19:00:56 | null | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 20.04):
- TensorFlow installation (pip package or built from source): pip
- TensorFlow library (version, if pip package or github SHA, if built from source): 2.10.0
### 2. Code
```
converter = tf.lite.TFLiteConverter.from_saved_model(in_keras_path)
converter.target_spec.supported_ops = [
tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops.
tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops.
]
converter.target_spec.experimental_supported_backends = ["GPU"] # if empty, GPU is not enabled
converter.experimental_new_converter = True
converter.optimizations = [tf.lite.Optimize.DEFAULT] #8-bit quantization
converter.allow_custom_ops = True
tflite_quant_model = converter.convert()
```
### 3. Failure after conversion
'BatchToSpaceND' ERROR_GPU_NOT_COMPATIBLE
'SpaceToBatchND' ERROR_GPU_NOT_COMPATIBLE
### 5. (optional) Any other info / logs
Hi everyone! I am having issues converting the U-2-Net model from PyTorch to TFLite for running on Android. My conversion path is PyTorch(pth) -> ONNX -> TensorFlow -> TFLite. An important requirement is that the TFLite model should support GPU execution and needs to be quantized. The main conversion path works fine, but I encountered an error during the TFLite conversion. After some investigation, I found out that if I change the layers with Conv2D parameters dilation > 1 and padding > 1 to dilation=1 and padding=1, the conversion works without any issues. However, this reduces the model's quality. Obviously, if GPU support is disabled, the model can be converted. I have tried using QuantizationDebugOptions and QuantizationDebugger, but it did not yield any results, the error remains the same. Can you please suggest any way to perform this conversion without compromising the model's quality?
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59870/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59870/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59869 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59869/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59869/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59869/events | https://github.com/tensorflow/tensorflow/issues/59869 | 1,606,729,216 | I_kwDOArmXAs5fxL4A | 59,869 | TypeError: this __dict__ descriptor does not support '_DictWrapper' objects | {
"login": "pmatsibekker",
"id": 124694336,
"node_id": "U_kgDOB26vQA",
"avatar_url": "https://avatars.githubusercontent.com/u/124694336?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pmatsibekker",
"html_url": "https://github.com/pmatsibekker",
"followers_url": "https://api.github.com/users/pmatsibekker/followers",
"following_url": "https://api.github.com/users/pmatsibekker/following{/other_user}",
"gists_url": "https://api.github.com/users/pmatsibekker/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pmatsibekker/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pmatsibekker/subscriptions",
"organizations_url": "https://api.github.com/users/pmatsibekker/orgs",
"repos_url": "https://api.github.com/users/pmatsibekker/repos",
"events_url": "https://api.github.com/users/pmatsibekker/events{/privacy}",
"received_events_url": "https://api.github.com/users/pmatsibekker/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 1162044565,
"node_id": "MDU6TGFiZWwxMTYyMDQ0NTY1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%201.12",
"name": "TF 1.12",
"color": "c2e0c6",
"default": false,
"description": "Issues related to TF 1.12"
}
] | closed | false | {
"login": "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 | [
"@pmatsibekker Thanks for reporting the issue.\r\n\r\nWe see that you are using 1.x version which is not supported anymore.\r\n\r\nI was able to run the code without any error on TF 2.11. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/912de7b163af0087ae00eea2e15061a1/59869.ipynb) and let us know if it helps.\r\n\r\nThank you.",
"@pmatsibekker I guess this might work. Does it help to you, or still it persist.\r\n\r\nIn Python, objects have a special attribute called __dict__, which is a dictionary that stores the object's attributes. However, there are some special objects called _DictWrapper that don't support the __dict__ attribute. If you try to access __dict__ on a _DictWrapper object, you'll get a TypeError.\r\nTo fix this error, you can try to access the __wrapped__ attribute of the _DictWrapper object, which will give you access to the underlying object's dictionary. Or, you can try to avoid using __dict__ on _DictWrapper objects and instead use the methods provided by the wrapper to access and manipulate its attributes.\r\n\r\nCode:\r\nwrapped_obj = my_dict_wrapper.__wrapped__\r\nwrapped_obj_dict = wrapped_obj.__dict__\r\n",
"Solved after removing saving model callback. It seems that error consists in model preservation procedure, which handled via transparent dictionary wrapper incorrectly.\r\nAs temporary solution (for those who faced this problem) saving model data can be done through `model.save_weights`",
"This issue also happens in version 2.12.0-rc0 on ubuntu\r\nThis code produces error.\r\ntf.keras.callbacks.BackupAndRestore may be broken.\r\n\r\n``` python\r\nimport tensorflow as tf\r\n\r\nmnist = tf.keras.datasets.mnist\r\n\r\n(x_train, y_train), (x_test, y_test) = mnist.load_data()\r\n\r\nx_train, x_test = x_train / 255.0, x_test / 255.0\r\nmodel = tf.keras.models.Sequential([\r\n tf.keras.layers.Flatten(input_shape=(28, 28)),\r\n tf.keras.layers.Dense(128, activation='relu'),\r\n tf.keras.layers.Dropout(0.2),\r\n tf.keras.layers.Dense(10, activation='softmax')\r\n])\r\n\r\nmodel.compile(optimizer='adam',\r\n loss='sparse_categorical_crossentropy',\r\n metrics=['accuracy'])\r\n\r\ncallbacks = [\r\n tf.keras.callbacks.BackupAndRestore('backup'),\r\n]\r\n\r\nmodel.fit(x_train, y_train, epochs=5, callbacks=callbacks)\r\n```\r\n\r\n```\r\nEpoch 1/5\r\n1854/1875 [============================>.] - ETA: 0s - loss: 0.2973 - accuracy: 0.9132Traceback (most recent call last):\r\n File \"/home/ubuntu/mnist.py\", line 23, in <module>\r\n model.fit(x_train, y_train, epochs=5, callbacks=callbacks)\r\n File \"/home/ubuntu/venv/tensorflow2.12.0rc0/lib/python3.10/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 \"/home/ubuntu/venv/tensorflow2.12.0rc0/lib/python3.10/site-packages/tensorflow/python/trackable/data_structures.py\", line 823, in __getattribute__\r\n return super().__getattribute__(name)\r\nTypeError: this __dict__ descriptor does not support '_DictWrapper' objects\r\n```",
"tf_nightly-2.13.0.dev20230302 works fine same code.",
"https://github.com/tensorflow/tensorflow/commit/b016eb2a4a9d9d95cfa9809ca4af937c8caeee38\r\n\r\nwrapt >= 1.11.0, <1.15 works, so tf_nightly works fine",
"upgrade worked. python had a hard time letting go of the version 1.x tensorflow library but a wipe and rebuild worked. 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/59869\">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/59869\">No</a>\n",
"In the solving [commit](https://github.com/tensorflow/tensorflow/commit/b016eb2a4a9d9d95cfa9809ca4af937c8caeee38) it is mentioned that the error has to be understood and solved more in depth. Maybe the [issue and discussion](https://github.com/GrahamDumpleton/wrapt/issues/231) on the wrapt repo can be helpful.",
"At this point I believe a more appropriate fix is to change the `__getattribute__()` override to:\r\n\r\n```\r\n def __getattribute__(self, name):\r\n import types\r\n\r\n #if (hasattr(type(self), name)\r\n # and (isinstance(getattr(type(self), name), property)):\r\n\r\n if hasattr(type(self), name):\r\n obj = getattr(type(self), name)\r\n\r\n if isinstance(obj, property):\r\n return object.__getattribute__(self, name)\r\n elif type(obj) == types.MappingProxyType and name == \"__dict__\":\r\n raise AttributeError(\"'mappingproxy' object has no attribute '__dict__'\")\r\n else:\r\n return super().__getattribute__(name)\r\n else:\r\n return super().__getattribute__(name)\r\n```\r\n\r\nThe change in wrapt 1.15.0 was to fix a bug whereby exceptions were suppressed by a wrapper and not raised when doing attribute access. That these exceptions are now raised has subtly changed how `__gettattribute__()` in Python may see things, having implications for tensorflow as a result. Best guess I can make, not really understanding what tensorflow wrapper does, is to have it explicitly check for `mappingproxy` type and raise an explicit `AttributeError` so that higher levels of Python internal `__getattribute__()` flow through and do what else it has to do properly rather than raising an exception. Can't see any other options at this point as overriding `__getattribute__()` can get quite gnarly.\r\n\r\nReally need people in the tensorflow community to check this change with all your test suites and verify things still work as expected. I can't really do much else as have no idea what those wrappers in tensorflow do.\r\n\r\nFor more details see https://github.com/GrahamDumpleton/wrapt/issues/231.",
"BTW, forgot to highlight this, but the trigger for this is that the exception that tensorflow raises:\r\n\r\n```\r\nTypeError: this __dict__ descriptor does not support '_DictWrapper' objects\r\n```\r\n\r\nuses `TypeError` when it arguably should be raising `AttributeError`.\r\n\r\nIf it changed to `AttributeError`, this likely would all work without needing to change `__getattribute__()` to add a special check for `__dict__` access on a `mappingproxy`.",
"\r\n\r\n\r\n> [b016eb2](https://github.com/tensorflow/tensorflow/commit/b016eb2a4a9d9d95cfa9809ca4af937c8caeee38)\r\n> \r\n> wrapt >= 1.11.0, <1.15 works, so tf_nightly works fine\r\n\r\nThanks!\r\n\r\nIt works for me when I download to 1.14.1 in conda using:\r\n`conda install -c conda-forge wrapt=1.14.1`"
] | 2023-03-02T12:33:29 | 2023-05-24T23:18:47 | 2023-03-03T02:19:43 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
binary
### Tensorflow Version
v1.12.1-88869-g80170ee25b4 2.12.0-rc0
### Custom Code
No
### OS Platform and Distribution
WIndows 11
### Mobile device
_No response_
### Python version
3.11.2
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
I am running the keras training module for mnist from tensorflow_datasets and want to save the model.
this is failing with error message below. I looked at the file thats triggering data_structures.py and noticed the super classes don't have the __getattribute__ method. I do see __getattr__.
Is this a version difference. My site-packages identified wrapt as wrapt-1.15.0-dist-info. Is there a version incompatability? If so, which version do I use?
```
### Standalone code to reproduce the issue
```shell
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import tensorflow_datasets as tfds
import keras
(ds_train, ds_test), ds_info = tfds.load(
'mnist',
split=['train', 'test'],
shuffle_files=True,
as_supervised=True,
with_info=True,
)
def normalize_img(image, label):
"""Normalizes images: `uint8` -> `float32`."""
return tf.cast(image, tf.float32) / 255., label
ds_train = ds_train.map(
normalize_img, num_parallel_calls=tf.data.AUTOTUNE)
ds_train = ds_train.cache()
ds_train = ds_train.shuffle(ds_info.splits['train'].num_examples)
ds_train = ds_train.batch(128)
ds_train = ds_train.prefetch(tf.data.AUTOTUNE)
ds_test = ds_test.map(
normalize_img, num_parallel_calls=tf.data.AUTOTUNE)
ds_test = ds_test.batch(128)
ds_test = ds_test.cache()
ds_test = ds_test.prefetch(tf.data.AUTOTUNE)
model = tf.keras.models.Sequential([
tf.keras.layers.Flatten(input_shape=(28, 28)),
tf.keras.layers.Dense(128, activation='relu'),
tf.keras.layers.Dense(10)
])
model.compile(
optimizer=tf.keras.optimizers.Adam(0.001),
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
metrics=[tf.keras.metrics.SparseCategoricalAccuracy()],
)
model.fit(
ds_train,
epochs=6,
validation_data=ds_test,
)
tf.saved_model.save(
model,
'saved/save_files'
)
```
### Relevant log output
```shell
WARNING:absl:Found untraced functions such as _update_step_xla while saving (showing 1 of 1). These functions will not be directly callable after loading.
Traceback (most recent call last):
File "C:\Users\pmats\PycharmProjects\pythonProject\minst.py", line 52, in <module>
tf.saved_model.save(
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\saved_model\save.py", line 1240, in save
save_and_return_nodes(obj, export_dir, signatures, options)
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\saved_model\save.py", line 1276, in save_and_return_nodes
_build_meta_graph(obj, signatures, options, meta_graph_def))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\saved_model\save.py", line 1455, in _build_meta_graph
return _build_meta_graph_impl(obj, signatures, options, meta_graph_def)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\saved_model\save.py", line 1408, in _build_meta_graph_impl
saveable_view = _SaveableView(augmented_graph_view, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\saved_model\save.py", line 281, in __init__
self._initialize_save_and_restore_functions()
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\saved_model\save.py", line 303, in _initialize_save_and_restore_functions
save_util_v1.get_checkpoint_factories_and_keys(self.object_names))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\checkpoint\save_util_v1.py", line 75, in get_checkpoint_factories_and_keys
saveable_object_util.saveable_objects_from_trackable(
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 614, in saveable_objects_from_trackable
if trackable_has_serialize_to_tensor(obj):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 745, in trackable_has_serialize_to_tensor
if "_serialize_to_tensors" in obj.__dict__:
^^^^^^^^^^^^
File "C:\Users\pmats\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\trackable\data_structures.py", line 823, in __getattribute__
return super().__getattribute__(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: this __dict__ descriptor does not support '_DictWrapper' objects
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59869/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59869/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59868 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59868/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59868/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59868/events | https://github.com/tensorflow/tensorflow/issues/59868 | 1,606,710,761 | I_kwDOArmXAs5fxHXp | 59,868 | Freeze zero weights during training | {
"login": "sampathrajapaksha",
"id": 26354491,
"node_id": "MDQ6VXNlcjI2MzU0NDkx",
"avatar_url": "https://avatars.githubusercontent.com/u/26354491?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sampathrajapaksha",
"html_url": "https://github.com/sampathrajapaksha",
"followers_url": "https://api.github.com/users/sampathrajapaksha/followers",
"following_url": "https://api.github.com/users/sampathrajapaksha/following{/other_user}",
"gists_url": "https://api.github.com/users/sampathrajapaksha/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sampathrajapaksha/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sampathrajapaksha/subscriptions",
"organizations_url": "https://api.github.com/users/sampathrajapaksha/orgs",
"repos_url": "https://api.github.com/users/sampathrajapaksha/repos",
"events_url": "https://api.github.com/users/sampathrajapaksha/events{/privacy}",
"received_events_url": "https://api.github.com/users/sampathrajapaksha/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": 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": "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 | [
"@sampathrajapaksha,\r\nCould you please elaborate about your Feature. Also, please specify the Use Cases for this feature. Thank you!",
"@tilakrayal \r\nThis is related to TF pruning. Even though TF provides the model pruning capability, it lacks retraining pruning models. \r\nI have pruned a model up to 80% . If I want to retrain the algorithm only using non-pruned weights (Non-zero weights), there's no way to achieve this in TF. \r\nMight be 0,1 masks can be used to convert gradients to zero for pruned weights, But, this introduces additional calculation, and therefore it's not computationally efficient. \r\nIs there any way to calculate gradients only for non-zero weights and retrain unpruned weights efficiently? ",
"Hi @sampathrajapaksha ,\r\n\r\nCould you please refer to this model_optimization documentation related to model pruning [here](https://www.tensorflow.org/model_optimization/guide/pruning) and an [example](https://www.tensorflow.org/model_optimization/guide/pruning/pruning_with_keras) here. \r\nThis will help us in reducing model size at cost of Accuracy.Please let us know if this is helpful. \r\n\r\nIf your requirement is different please provide gist of an end to end example which helps us to evaluate this feature.\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-03-02T12:21:42 | 2023-03-21T01:54:03 | 2023-03-21T01:54:03 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Feature Request
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.11
### Custom Code
Yes
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
Is there any way to freeze zero weights during model retraining? (this is different than freezing a layer which is already available in TF)
This is relevant to model pruning. For example, i want to retrain only non-zero weights of a pruned model. Is it possible to use tf.IndexedSlices efficiently for this?
```
### Standalone code to reproduce the issue
```shell
I think we can achieve this if there's any feature in TF to calculate grads only for non-zero weights. I couldn't find any method to achieve this
@tf.function
def train_step(inputs, targets):
with tf.GradientTape() as tape:
predictions = model(inputs, training=True)
loss_value = loss_fn(targets, predictions)
grads = tape.gradient(loss_value, model.trainable_weights)
optimizer.apply_gradients(zip(grads, model.trainable_weights))
return loss_value
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59868/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59868/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59867 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59867/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59867/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59867/events | https://github.com/tensorflow/tensorflow/pull/59867 | 1,606,568,381 | PR_kwDOArmXAs5LHc7y | 59,867 | [Linaro:ARM_CI] Fix bad interpreter from update_version.py | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-02T10:49:07 | 2023-03-06T09:29:11 | 2023-03-03T01:51:41 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59867",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59867",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59867.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59867.patch",
"merged_at": "2023-03-03T01:51:41"
} | update_version.py expects there to be a valid Python interpreter that can be used as /usr/bin/python so ensure that this path exists as a link to a valid binary | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59867/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59867/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59866 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59866/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59866/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59866/events | https://github.com/tensorflow/tensorflow/pull/59866 | 1,606,520,580 | PR_kwDOArmXAs5LHSj1 | 59,866 | NOT_FOR_MERGE Test build | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [
"Test successful"
] | 2023-03-02T10:16:17 | 2023-03-06T09:29:11 | 2023-03-02T17:04:03 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59866",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59866",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59866.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59866.patch",
"merged_at": null
} | Just a means to test possible fixes | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59866/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59866/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59865 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59865/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59865/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59865/events | https://github.com/tensorflow/tensorflow/issues/59865 | 1,606,435,513 | I_kwDOArmXAs5fwEK5 | 59,865 | Cannot place 2 pre-trained models on separate GPUs | {
"login": "boocheck",
"id": 1492258,
"node_id": "MDQ6VXNlcjE0OTIyNTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/1492258?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/boocheck",
"html_url": "https://github.com/boocheck",
"followers_url": "https://api.github.com/users/boocheck/followers",
"following_url": "https://api.github.com/users/boocheck/following{/other_user}",
"gists_url": "https://api.github.com/users/boocheck/gists{/gist_id}",
"starred_url": "https://api.github.com/users/boocheck/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/boocheck/subscriptions",
"organizations_url": "https://api.github.com/users/boocheck/orgs",
"repos_url": "https://api.github.com/users/boocheck/repos",
"events_url": "https://api.github.com/users/boocheck/events{/privacy}",
"received_events_url": "https://api.github.com/users/boocheck/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097547538,
"node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu",
"name": "comp:gpu",
"color": "0052cc",
"default": false,
"description": "GPU related issues"
},
{
"id": 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 | [
"* i have NOT reproduced with tf nightly",
"Hi, @boocheck \r\n\r\nApologize for the delay and if you're using single machine with multiple GPU's (in your case 2 GPU's) then you'll have to go with [tf.distribute.MirroredStrategy](https://www.tensorflow.org/api_docs/python/tf/distribute/MirroredStrategy) and you can create `MirroredStrategy` as below which will create a `MirroredStrategy` instance, which will use all the GPUs that are visible to TensorFlow :\r\n\r\n```\r\nmirrored_strategy = tf.distribute.MirroredStrategy()\r\n\r\n## If you wish to use only some of the GPUs on your machine, you can do so like this:\r\n\r\nmirrored_strategy = tf.distribute.MirroredStrategy(devices=[\"/gpu:0\", \"/gpu:1\"])\r\n```\r\n\r\nYou'll have to compile and build your model within `MirroredStrategy` scope so do something like below :\r\n\r\n```\r\nwith mirrored_strategy.scope():\r\n model = tf.keras.Model(inputs=inputs, outputs=x)\r\n model.compile(...)\r\n model.fit(...)\r\n```\r\n\r\nPlease refer our official documentation of [Distributed training with TensorFlow](https://www.tensorflow.org/guide/distributed_training) and please refer these references [Ref-1](https://towardsdatascience.com/multi-gpus-and-custom-training-loops-in-tensorflow-2-15b4b86b53bd), [Ref-2](https://www.youtube.com/watch?v=S1tN9a4Proc), I hope it will help you to resolve your issue\r\n\r\nIf issue still persists please let us know ? Thank you!",
"I am sorry, but this is not solving my problem. I am aware of existance of MirroredStrategy, but too my knowledge, it tries to place whole model on specified GPUs. I cannot use it, because after CNN part (here: VGG16) I need to use heavy memory operation, which cannot fit any GPU memory. \r\n\r\nMy problem is solvable by architecture like this:\r\n![image](https://user-images.githubusercontent.com/1492258/222903864-74a84fd8-a08b-4534-ab7c-458ffcf89b99.png)\r\n\r\nSo what would preferably do is:\r\n![image](https://user-images.githubusercontent.com/1492258/222904415-515ea792-658d-4708-b128-d4472c6d7c8e.png)\r\n\r\nWhat is puzzling, and makes me believe this may be not intended behavior, when put some plain matmul in place of VGG16 (look: model2 in my original post) it is all working like intended\r\n",
"Hi, @SuryanarayanaY \r\n\r\nCould you please look into this issue? Thank you!",
"Hi @boocheck ,\r\n\r\nRight now Tensorflow supports Data Parallelism i.e Data will be splitted across the accelerators but the same model will be copied across all these devices(each device have same copy of model but different slices of data).\r\n\r\nYour ask is for Model parallelism which is not yet supported by Tensorflow. i.e you can't train different models/layers on different machines.This is still under development stage only.\r\n\r\nPlease refer this official tensorflow video [tutorial](https://www.youtube.com/watch?v=cdNLtMszdLs) for more detail on this concept.\r\n\r\nRight now you can use data parallelism using Mirrored strategy.\r\n\r\nThankyou!",
"Hello @SuryanarayanaY \r\n\r\nthis seems not to be true. Have a look at this https://www.tensorflow.org/guide/gpu#manual_device_placement",
"Hi @boocheck ,\r\n\r\nYou can choose the device manually using `tf.device` for Ops.AFAIK It does execution of code line by line but not parallel. \r\n\r\nBut in your case on same model you want to use different devices for different blocks of model which is nothing but Model parallelism which is not yet supported in Tensorflow.For model training on GPUs right now Tensorflow supports data parallelism concept using Distribution training.Since you are trying to use same model but on different devices which is not supported yet on tensorflow.Distribution training is not straight forward, it needs copying the data/model across replicas and it uses all reduce algorithms for cross device communication which is implemented using distribution strategies and only for Data Parallelism as of now.\r\n\r\nPlease refer the attached [source](https://www.tensorflow.org/api_docs/python/tf/distribute#:~:text=Glossary,async%20between%20groups.) that states limitations and status regarding model parallelism.\r\n\r\nAlso Please refer to distribution training [documentation](https://www.tensorflow.org/guide/distributed_training) for more details.",
"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/59865\">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/59865\">No</a>\n"
] | 2023-03-02T09:23:44 | 2023-04-06T01:53:29 | 2023-04-06T01:53:26 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.4.1
### Custom Code
Yes
### OS Platform and Distribution
centos 7
### 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
2x tesla P40
### Current Behaviour?
```shell
I expected both vgg16 models to run in parallel on 2 GPUs at near 100% capacity, but nvidia-smi shows one being completely idle. When I used some matmul in place of pretrained vgg16 (function 'model2') I observe both GPUs utilisation.
```
### Standalone code to reproduce the issue
```shell
import numpy as np
import tensorflow as tf
from tensorflow.python.keras import Input, Model
from tensorflow.python.keras.applications.vgg16 import VGG16
from tensorflow.python.keras.layers import Dense, GlobalAveragePooling2D
tf.debugging.set_log_device_placement(True)
def model(images):
with tf.device("/cpu:0"):
first, second = tf.split(images, 2)
with tf.device("/gpu:0"):
vgg1 = VGG16(False)
vgg1._name = "vgg1" # without this i get error about layers not having unique names
vgg1.trainable = False
vgged1 = vgg1(first)
with tf.device("/gpu:1"):
vgg2 = VGG16(False) # it feels like this does not create second model but somehow reuses vgg1 on GPU:0
vgg2._name = "vgg2"
vgg2.trainable = False
vgged2 = vgg2(second)
with tf.device("/cpu:0"):
gap = GlobalAveragePooling2D()
concated = tf.concat([gap(vgged1), gap(vgged2)], 1)
d10 = Dense(10)(concated)
return d10
def model2(images):
flat_size=224*224*3
with tf.device("/cpu:0"):
first, second = tf.split(images, 2)
with tf.device("/gpu:0"):
flat1=tf.reshape(first, [-1, flat_size])
w1 = tf.Variable(tf.random.uniform([flat_size, 10000]))
res1= tf.matmul(flat1, w1)
with tf.device("/gpu:1"):
flat2 = tf.reshape(second, [-1, flat_size])
w2 = tf.Variable(tf.random.uniform([flat_size, 10000]))
res2 = tf.matmul(flat2, w2)
with tf.device("/cpu:0"):
concated = tf.concat([res1, res2], 1)
w3 = tf.Variable(tf.random.uniform([20000, 10]))
return tf.matmul(concated,w3)
inp = Input((224, 224, 3))
out = model(inp) # if I change this to "out = model2(inp)" both GPUs work
m = Model(inputs=inp, outputs=out)
x = np.random.random([32, 224, 224, 3])
m.summary()
for
m(x)
```
### Relevant log output
```shell
full output available at: https://snippet.host/hyrgbj
2023-02-28 12:41:01.741524: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-02-28 12:41:03.001461: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set
2023-02-28 12:41:03.002735: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcuda.so.1
2023-02-28 12:41:03.010097: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:08:00.0 name: Tesla P40 computeCapability: 6.1
coreClock: 1.531GHz coreCount: 30 deviceMemorySize: 22.38GiB deviceMemoryBandwidth: 323.21GiB/s
2023-02-28 12:41:03.010449: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 1 with properties:
pciBusID: 0000:84:00.0 name: Tesla P40 computeCapability: 6.1
coreClock: 1.531GHz coreCount: 30 deviceMemorySize: 22.38GiB deviceMemoryBandwidth: 323.21GiB/s
2023-02-28 12:41:03.010499: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-02-28 12:41:03.017621: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2023-02-28 12:41:03.017668: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2023-02-28 12:41:03.052369: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2023-02-28 12:41:03.053152: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2023-02-28 12:41:03.055905: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2023-02-28 12:41:03.057101: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2023-02-28 12:41:03.057265: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2023-02-28 12:41:03.063035: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0, 1
2023-02-28 12:41:03.063516: 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 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-28 12:41:03.069400: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set
2023-02-28 12:41:03.329039: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:
pciBusID: 0000:08:00.0 name: Tesla P40 computeCapability: 6.1
coreClock: 1.531GHz coreCount: 30 deviceMemorySize: 22.38GiB deviceMemoryBandwidth: 323.21GiB/s
2023-02-28 12:41:03.329290: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 1 with properties:
pciBusID: 0000:84:00.0 name: Tesla P40 computeCapability: 6.1
coreClock: 1.531GHz coreCount: 30 deviceMemorySize: 22.38GiB deviceMemoryBandwidth: 323.21GiB/s
2023-02-28 12:41:03.329353: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-02-28 12:41:03.329389: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublas.so.11
2023-02-28 12:41:03.329408: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcublasLt.so.11
2023-02-28 12:41:03.329443: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcufft.so.10
2023-02-28 12:41:03.329473: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcurand.so.10
2023-02-28 12:41:03.329491: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusolver.so.10
2023-02-28 12:41:03.329517: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcusparse.so.11
2023-02-28 12:41:03.329537: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudnn.so.8
2023-02-28 12:41:03.330198: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0, 1
2023-02-28 12:41:03.330243: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
2023-02-28 12:41:04.083881: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-02-28 12:41:04.083958: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267] 0 1
2023-02-28 12:41:04.083972: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0: N N
2023-02-28 12:41:04.083981: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 1: N N
2023-02-28 12:41:04.085081: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 21298 MB memory) -> physical GPU (device: 0, name: Tesla P40, pci bus id: 0000:08:00.0, compute capability: 6.1)
2023-02-28 12:41:04.085905: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 21298 MB memory) -> physical GPU (device: 1, name: Tesla P40, pci bus id: 0000:84:00.0, compute capability: 6.1)
2023-02-28 12:41:04.106894: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.311401: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.311641: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.311778: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.312103: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.312365: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.313784: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.313966: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.314080: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321015: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321222: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321295: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321356: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321509: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321620: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.321957: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.322085: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.322183: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.329542: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.329740: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.329821: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.329882: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.330035: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.330153: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.330489: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.330650: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.330757: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.336373: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.336577: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.336651: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.336713: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.336886: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.336996: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.337341: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.337460: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.337556: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.344730: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.344917: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.344990: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.345050: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.345212: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.345367: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.345719: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.345882: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.345985: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.351300: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.351501: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.351576: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.351637: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.351790: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.351907: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.352251: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.352372: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.352472: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.357894: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.357971: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358047: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358113: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358229: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358333: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358666: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358787: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.358885: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.366153: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.366357: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.366447: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.366507: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.366668: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.366779: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.367122: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.367288: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.367393: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.372946: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.373388: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.373463: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.373542: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.373696: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.373806: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.374161: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.374283: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.374399: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.379794: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.379872: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.379950: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.380008: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.380129: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.380234: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.380564: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.380684: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.380780: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.387982: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388062: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388136: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388195: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388309: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388414: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388756: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Fill in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388879: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op VarHandleOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.388981: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op AssignVariableOp in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.394514: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op RandomUniform in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.394591: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Sub in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.394657: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Mul in device /job:localhost/replica:0/task:0/device:GPU:0
2023-02-28 12:41:04.394724: I tensorflow/core/common_runtime/eager/execute.cc:760] Executing op Add in device /job:localhost/replica:0/task:0/device:GPU:0
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59865/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59865/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59864 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59864/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59864/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59864/events | https://github.com/tensorflow/tensorflow/pull/59864 | 1,606,374,373 | PR_kwDOArmXAs5LGyYm | 59,864 | Fix the image recognition tutorial links in README.md | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 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-03-02T08:57:08 | 2023-03-07T03:59:25 | 2023-03-06T20:34:45 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59864",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59864",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59864.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59864.patch",
"merged_at": "2023-03-06T20:34:45"
} | The links for inception tutorial are broken. Updated them to right links that point to 1.x image recognition tutorial. Please do the needful. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59864/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59864/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59863 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59863/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59863/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59863/events | https://github.com/tensorflow/tensorflow/issues/59863 | 1,606,143,475 | I_kwDOArmXAs5fu83z | 59,863 | Layer input_spec must be an instance of InputSpec! | {
"login": "Caolongjie",
"id": 11513329,
"node_id": "MDQ6VXNlcjExNTEzMzI5",
"avatar_url": "https://avatars.githubusercontent.com/u/11513329?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Caolongjie",
"html_url": "https://github.com/Caolongjie",
"followers_url": "https://api.github.com/users/Caolongjie/followers",
"following_url": "https://api.github.com/users/Caolongjie/following{/other_user}",
"gists_url": "https://api.github.com/users/Caolongjie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Caolongjie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Caolongjie/subscriptions",
"organizations_url": "https://api.github.com/users/Caolongjie/orgs",
"repos_url": "https://api.github.com/users/Caolongjie/repos",
"events_url": "https://api.github.com/users/Caolongjie/events{/privacy}",
"received_events_url": "https://api.github.com/users/Caolongjie/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 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": "synandi",
"id": 98147397,
"node_id": "U_kgDOBdmcRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/synandi",
"html_url": "https://github.com/synandi",
"followers_url": "https://api.github.com/users/synandi/followers",
"following_url": "https://api.github.com/users/synandi/following{/other_user}",
"gists_url": "https://api.github.com/users/synandi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/synandi/subscriptions",
"organizations_url": "https://api.github.com/users/synandi/orgs",
"repos_url": "https://api.github.com/users/synandi/repos",
"events_url": "https://api.github.com/users/synandi/events{/privacy}",
"received_events_url": "https://api.github.com/users/synandi/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "synandi",
"id": 98147397,
"node_id": "U_kgDOBdmcRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/synandi",
"html_url": "https://github.com/synandi",
"followers_url": "https://api.github.com/users/synandi/followers",
"following_url": "https://api.github.com/users/synandi/following{/other_user}",
"gists_url": "https://api.github.com/users/synandi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/synandi/subscriptions",
"organizations_url": "https://api.github.com/users/synandi/orgs",
"repos_url": "https://api.github.com/users/synandi/repos",
"events_url": "https://api.github.com/users/synandi/events{/privacy}",
"received_events_url": "https://api.github.com/users/synandi/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @Caolongjie, Apologies for the delay. \r\n\r\nAnything under` tf.python.*` is private, intended for development only, rather than for public use.\r\nImporting from tensorflow.python or any other modules (including import tensorflow_core...) is not supported, and can break unannounced.So, it is suggested not to use anything with tf.python.*.\r\n\r\nYou can use `tf.keras.layers.InputSpec` instead of `tensorflow.python.keras.engine.input_spec`. Please find the gist of working code [here](https://colab.sandbox.google.com/gist/synandi/b7fa1ca299d9901f650e8a8bdf55c992/59863.ipynb). Thank you!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"The issue should be opened for bert project not tf. You can close it.",
"Anyway, I used my tempory workaound to use bert on tf 2.6.0 gpu version based on python3.9, and will update when bert is updated .",
"> The issue should be opened for bert project not tf. You can close it.\r\n\r\nThank you for confirming. Closing the issue.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59863\">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/59863\">No</a>\n"
] | 2023-03-02T05:39:50 | 2023-03-17T13:50:12 | 2023-03-17T13:50:10 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
No
### Source
source
### Tensorflow Version
tf 2.6
### Custom Code
No
### OS Platform and Distribution
windows
### Mobile device
_No response_
### Python version
3.9
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
from tensorflow.python.keras.engine.input_spec import InputSpec as InputSpec1
def input_spec(self, value):
for v in tf.nest.flatten(value):
if v is not None and not isinstance(v, InputSpec):
#if not isinstance(v, InputSpec1):
raise TypeError('Layer input_spec must be an instance of InputSpec. '
'Got: {}'.format(v))
self._input_spec = value
isinstance(v, InputSpec) return false when the v is InputSpec(shape=(None, 500, 768), ndim=3), after adding if not isinstance(v, InputSpec1), the assert is fixed.
Anyway after modifying it, my bert tuning model works fine on GPU on tensflow2.6 on python 3.9.
Thanks for the reply for correct solution.
```
### Standalone code to reproduce the issue
```shell
below is the breakpoint output right before the assert:
v
InputSpec(shape=(None, 500, 768), ndim=3)
type(v)
<class 'tensorflow.python.keras.engine.input_spec.InputSpec'>
InputSpec
<class 'keras.engine.input_spec.InputSpec'>
from tensorflow.python.keras.engine.input_spec import InputSpec as InputSpec1
isinstance(v,InputSpec1)
True
isinstance(v,InputSpec)
False
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59863/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59863/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59862 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59862/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59862/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59862/events | https://github.com/tensorflow/tensorflow/pull/59862 | 1,605,987,585 | PR_kwDOArmXAs5LFfJL | 59,862 | r2.12 cherry-pick: 78766dfd121 "[Linaro:ARM_CI] Use the provided group name for chown" | {
"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-03-02T02:08:43 | 2023-03-02T19:54:14 | 2023-03-02T14:34:26 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59862",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59862",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59862.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59862.patch",
"merged_at": "2023-03-02T14:34:25"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/78766dfd121914f7f75b384f7a234e2012c979d0 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59862/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59862/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59861 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59861/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59861/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59861/events | https://github.com/tensorflow/tensorflow/issues/59861 | 1,605,971,818 | I_kwDOArmXAs5fuS9q | 59,861 | disable linkage to nativewindow when API_LEVEL<26 | {
"login": "shelper",
"id": 546163,
"node_id": "MDQ6VXNlcjU0NjE2Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/546163?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shelper",
"html_url": "https://github.com/shelper",
"followers_url": "https://api.github.com/users/shelper/followers",
"following_url": "https://api.github.com/users/shelper/following{/other_user}",
"gists_url": "https://api.github.com/users/shelper/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shelper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shelper/subscriptions",
"organizations_url": "https://api.github.com/users/shelper/orgs",
"repos_url": "https://api.github.com/users/shelper/repos",
"events_url": "https://api.github.com/users/shelper/events{/privacy}",
"received_events_url": "https://api.github.com/users/shelper/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473173272,
"node_id": "MDU6TGFiZWw0NzMxNzMyNzI=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:feature",
"name": "type:feature",
"color": "159b2e",
"default": false,
"description": "Feature requests"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 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": 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"
},
{
"id": 2671339633,
"node_id": "MDU6TGFiZWwyNjcxMzM5NjMz",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteGpuDelegate",
"name": "TFLiteGpuDelegate",
"color": "F71F04",
"default": false,
"description": "TFLite Gpu delegate issue"
}
] | closed | false | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"I would like to work on this issue \r\n ",
"@shelper Would you like to create a PR?\r\n\r\nThanks.",
"i am not a bazel guy, played with it a little bit, but i didnt figure out how to access this api_level variable in this bazel file. \r\nI do have api_level defined in my root WORKSPACE file as below, but just dont know how can i get it \r\n```\r\nandroid_ndk_repository(\r\n name=\"androidndk\",\r\n path=\"/path/to/android-ndk-r21\",\r\n api_level=21,\r\n)\r\n\r\n```\r\n",
"This implementation is due to the implementation of async API for GPU delegate, implementation depends on `AHardwareBuffer` which is available from API 26.\r\nThe intended behavior is to always return the `lnativewindow` for API 26 or higher.\r\n@terryheo , Could you please look into the issue to include a condition for pre API 26.",
"I also couldn't find a way to get API level in Bazel BUILD rules.\r\n\r\nThat's why TF's Android builds requires API level 26 or higher.\r\nhttps://github.com/tensorflow/tensorflow/blob/master/configure.py#L760\r\n\r\nIf you want to use lower level, you need to modify the file manually.",
"This issue has been marked as stale because it has no recent 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/59861\">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/59861\">No</a>\n"
] | 2023-03-02T01:48:09 | 2023-04-02T01:54:44 | 2023-04-02T01:54:42 | CONTRIBUTOR | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Build/Install
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
latest/nightly
### Custom Code
No
### OS Platform and Distribution
Android
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
5.3.0
### GCC/Compiler version
clang 9
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
in file `tensorflow/lite/delegates/gpu/build_defs.bzl` line 12 it returns a link option of "-lnativewindow" by `return ["-lnativewindow"]`, but this option is only available for ndk api_level >=26.
would be nice if a condition can be set here with something like:
if api_level >=26:
return ["-lnativewindow"]
else:
return []
```
```
### Standalone code to reproduce the issue
```shell
set api_level=21, and build tflite_gpu_delegation it will fail with `cannot find -lnativewindow`
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59861/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59861/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59860 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59860/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59860/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59860/events | https://github.com/tensorflow/tensorflow/pull/59860 | 1,605,962,584 | PR_kwDOArmXAs5LFZ06 | 59,860 | use list intialization for AsynSubgraph::next_buffer_handle_ | {
"login": "shelper",
"id": 546163,
"node_id": "MDQ6VXNlcjU0NjE2Mw==",
"avatar_url": "https://avatars.githubusercontent.com/u/546163?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shelper",
"html_url": "https://github.com/shelper",
"followers_url": "https://api.github.com/users/shelper/followers",
"following_url": "https://api.github.com/users/shelper/following{/other_user}",
"gists_url": "https://api.github.com/users/shelper/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shelper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shelper/subscriptions",
"organizations_url": "https://api.github.com/users/shelper/orgs",
"repos_url": "https://api.github.com/users/shelper/repos",
"events_url": "https://api.github.com/users/shelper/events{/privacy}",
"received_events_url": "https://api.github.com/users/shelper/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @yijie-yang Can you please review this PR ? Thank you!"
] | 2023-03-02T01:33:13 | 2023-04-03T18:44:56 | 2023-04-03T18:44:56 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59860",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59860",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59860.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59860.patch",
"merged_at": "2023-04-03T18:44:56"
} | List intialization fixes error of `copying member subobject of type 'std::atomic<TfLiteBufferHandle>' (aka 'atomic<int>') invokes deleted constructor` at `std::atomic<TfLiteBufferHandle> next_buffer_handle_ = 0;` at `tensorflow/lite/core/async/async_subgraph.h` line:165 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59860/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59860/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59859 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59859/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59859/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59859/events | https://github.com/tensorflow/tensorflow/pull/59859 | 1,605,955,669 | PR_kwDOArmXAs5LFYZv | 59,859 | Fix Add/Sub QInt8 rounding mismatch | {
"login": "Jerry-Ge",
"id": 24451859,
"node_id": "MDQ6VXNlcjI0NDUxODU5",
"avatar_url": "https://avatars.githubusercontent.com/u/24451859?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Jerry-Ge",
"html_url": "https://github.com/Jerry-Ge",
"followers_url": "https://api.github.com/users/Jerry-Ge/followers",
"following_url": "https://api.github.com/users/Jerry-Ge/following{/other_user}",
"gists_url": "https://api.github.com/users/Jerry-Ge/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Jerry-Ge/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jerry-Ge/subscriptions",
"organizations_url": "https://api.github.com/users/Jerry-Ge/orgs",
"repos_url": "https://api.github.com/users/Jerry-Ge/repos",
"events_url": "https://api.github.com/users/Jerry-Ge/events{/privacy}",
"received_events_url": "https://api.github.com/users/Jerry-Ge/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169365682,
"node_id": "MDU6TGFiZWwxMTY5MzY1Njgy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L",
"name": "size:L",
"color": "adafea",
"default": false,
"description": "CL Change Size: Large"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"cc @eric-k256 @dominicsymes",
"Hello @jpienaar , seems something failed in `feedback/copybara` and I don't have access to that. Could you help me double check? Tks!\r\n",
"I'm seeing\r\n\r\n```\r\nmlir/tosa/tests/tfl-to-tosa-pipeline.mlir:358:45: error: undefined variable: VAL_0\r\n// CHECK: %[[VAL_3:.*]] = \"tosa.rescale\"(%[[VAL_0]]) {double_round = false, input_zp = 128 : i32, multiplier = array<i32: 1073741824>, output_zp = 0 : i32, per_channel = false, scale32 = true, shift = array<i32: 30>}\r\n ^\r\n```\r\n\r\non internal result.",
"> \r\n\r\ngot it. will fix it soon.",
"Still see failure tosa/tests/tfl-to-tosa-pipeline.mlir:390:45 and :358",
"There's one environment difference between our setup and github: we were not setting the `--enable-var-scope` in FileCheck which was causing the failing test cases can still pass on our side. With the new patch set, everything should be ok now. "
] | 2023-03-02T01:22:21 | 2023-03-11T02:54:29 | 2023-03-11T02:54:28 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59859",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59859",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59859.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59859.patch",
"merged_at": "2023-03-11T02:54:28"
} | - Align legalization of quantized add/subtract. Previous legalization optimized out a left shift that led to rounding differences when double_rounding was being used by the TFLite runtime. [[Link to the TFL Reference](https://github.com/tensorflow/tensorflow/blob/3a5142f28393e98af720128b31feebc4a6e47a84/tensorflow/lite/kernels/add.cc#L172)]
- Support different rounding modes to buildRescaleFromInt32, buildRescaleToInt32 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59859/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59859/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59858 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59858/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59858/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59858/events | https://github.com/tensorflow/tensorflow/pull/59858 | 1,605,875,854 | PR_kwDOArmXAs5LFHQ4 | 59,858 | [Linaro:ARM_CI] Use the provided group name for chown | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-01T23:56:36 | 2023-03-06T09:29:11 | 2023-03-02T01:45:57 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59858",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59858",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59858.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59858.patch",
"merged_at": "2023-03-02T01:45:57"
} | Do not assume that the group name in use will be the same as the username so explicitly refer to the provided build user group for setting the group on chown rather than assume it will be the same as the username. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59858/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59858/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59857 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59857/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59857/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59857/events | https://github.com/tensorflow/tensorflow/issues/59857 | 1,605,818,414 | I_kwDOArmXAs5fttgu | 59,857 | [StableHLO/MHLO] `tf-lower-to-mlprogram-and-hlo` | {
"login": "DEKHTIARJonathan",
"id": 10923599,
"node_id": "MDQ6VXNlcjEwOTIzNTk5",
"avatar_url": "https://avatars.githubusercontent.com/u/10923599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DEKHTIARJonathan",
"html_url": "https://github.com/DEKHTIARJonathan",
"followers_url": "https://api.github.com/users/DEKHTIARJonathan/followers",
"following_url": "https://api.github.com/users/DEKHTIARJonathan/following{/other_user}",
"gists_url": "https://api.github.com/users/DEKHTIARJonathan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DEKHTIARJonathan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DEKHTIARJonathan/subscriptions",
"organizations_url": "https://api.github.com/users/DEKHTIARJonathan/orgs",
"repos_url": "https://api.github.com/users/DEKHTIARJonathan/repos",
"events_url": "https://api.github.com/users/DEKHTIARJonathan/events{/privacy}",
"received_events_url": "https://api.github.com/users/DEKHTIARJonathan/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": 2691123225,
"node_id": "MDU6TGFiZWwyNjkxMTIzMjI1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:tf.function",
"name": "comp:tf.function",
"color": "0052cc",
"default": false,
"description": "tf.function related issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | open | false | {
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"cc @matthiaskramm",
"@gaikwadrahul8,\r\nI was able to reproduce the issue on tensorflow v2.11 and tf-nightly. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/a6272839ae621a7b289186743d654b08/stablehlo_read_variable.ipynb).",
"Interesting. This uses a different entry point (`pywrap_mlir.import_function` instead of `pywrap_mlir.experimental_convert_saved_model_to_mlir`). As such, the frozen function has less information:\r\n\r\n```\r\n@__inference_infer_func_97(\r\n %arg0: tensor<32x32x32x3xf32> {tf._user_specified_name = \"data\"}\r\n %arg1: tensor<*x!tf_type.resource>,\r\n %arg2: tensor<*x!tf_type.resource>, ...) {\r\n %0 = tf_executor.graph {\r\n %outputs, %control = tf_executor.island wraps \"tf.ReadVariableOp\"(%arg2)\r\n ...\r\n} \r\n```\r\n\r\n(I got the MLIR before the `tf-lower-to-mlprogram-and-hlo` pass by setting the pipeline to \"\")\r\n\r\nNote how there's no `GlobalTensor` op corresponding to the \"resource\" arguments. And also, since this is not a saved_model, we don't have the `tf_saved_model.bound_input` we usually use to map arguments to resources.\r\n\r\nWhat should the ReadVariable op be converted to? Should it become an argument? Or should we create a `ml_program.GlobalOp` with a machine-generated name that represents (otherwise unassigned) resource arguments to public functions?\r\n(Either is fine with me, I'm mostly curious what kind of stablehlo/ml_program output will be the easiest to consume.)",
"Thank you for taking a look, @matthiaskramm! @christopherbate could you opine here please?",
"@matthiaskramm could we maybe replace the ReadVariableOp by the MHLO equivalent: https://www.tensorflow.org/mlir/hlo_ops#mhloinfeed_mlirmhloinfeedop and the StableHLO: https://github.com/openxla/stablehlo/blob/main/docs/spec.md#infeed",
"We convert all other variable operations to `ml_program`. It would be weird to convert only some of them into `stablehlo` instead.",
"@matthiaskramm could we work at making this not SavedModel specific maybe ?\r\nhttps://github.com/tensorflow/tensorflow/blob/b737ee48f1de346151b1e32e4f2d8351071e64d7/tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.td#L93-L113",
"Right, that's the idea. I think based on what we've discussed so far, the best option is to we create a ml_program.GlobalOp with a machine-generated name that represents (otherwise unassigned) resource arguments to public functions, in the case where we convert a Graph instead of a savedmodel. That's what I've seen other converters do, as well."
] | 2023-03-01T23:05:39 | 2023-03-17T07:14:36 | null | CONTRIBUTOR | null | null | null | ### Tensorflow Version
2.13.0-dev20230301 - TF Nightly
### Current Behaviour?
StableHLO / MHLO seems to not be able to convert the `ReadVariableOP` which is a big problem because it prevents to convert any `tf.function` to StableHLO/MHLO which is not first frozen.
You can find a colab here: https://colab.research.google.com/drive/1NrKZ3tihyYR9hj5r9Tfp5cPiirS-nF5u
### Standalone code to reproduce the issue
```python
import tensorflow as tf
from tensorflow.python import pywrap_mlir
USE_FREEZING = False # Set it to `True` and the problem disappears
def generate_model():
return tf.keras.models.Sequential([
tf.keras.layers.Input(shape=(32, 32, 3)),
tf.keras.layers.Conv2D(2, 3, activation='relu', padding="same")
])
model = generate_model()
model.trainable = False # Freeze the outer model
@tf.function()
def infer_func(data):
return model(data, training=False)
concrete_infer_func = infer_func.get_concrete_function(
tf.TensorSpec((32, 32, 32, 3), tf.float32)
)
if USE_FREEZING:
from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2_as_graph
frozen_func, gdef = convert_variables_to_constants_v2_as_graph(
func=concrete_infer_func,
lower_control_flow=True,
aggressive_inlining=False
)
else:
frozen_func = concrete_infer_func
def convert_to_hlo(concrete_function, use_stablehlo=True):
pipelines = ["tf-lower-to-mlprogram-and-hlo"]
if not use_stablehlo:
pipelines.append("stablehlo-legalize-to-hlo")
return pywrap_mlir.import_function(
concrete_function,
pass_pipeline=",".join(pipelines),
show_debug_info=False
)
# ---------------------------------------------------------------
# Convert saved model to Stablehlo + upstream MLIR ops
# ---------------------------------------------------------------
WORKFLOW_STEPS = [
("mhlo", False),
("stablehlo", True),
]
for extension, use_stablehlo in WORKFLOW_STEPS:
with open(f"model.{extension}", "w") as f:
hlo_str = convert_to_hlo(
frozen_func,
use_stablehlo=use_stablehlo
)
f.write(hlo_str)
import hashlib
checksum = hashlib.md5(open(f"model.{extension}","rb").read()).hexdigest()
print(f"File: model.{extension:10s}: {checksum}")
```
### Relevant log output
As you can see below, they both contain:
- `"tf.ReadVariableOp"`
- `tf.Conv2D`
And these are clearly not part of the StableHLO/MHLO language
```shell
$ cat model.stablehlo
module {
func.func @__inference_infer_func_49(%arg0: tensor<32x32x32x3xf32>, %arg1: tensor<*x!tf_type.resource>, %arg2: tensor<*x!tf_type.resource>) -> tensor<32x?x?x?xf32> {
%0 = stablehlo.constant dense<0.000000e+00> : tensor<f32>
%1 = "tf.ReadVariableOp"(%arg2) {device = ""} : (tensor<*x!tf_type.resource>) -> tensor<*xf32>
%2 = "tf.ReadVariableOp"(%arg1) {device = ""} : (tensor<*x!tf_type.resource>) -> tensor<*xf32>
%3 = "tf.Conv2D"(%arg0, %2) {data_format = "NHWC", device = "", dilations = [1, 1, 1, 1], explicit_paddings = [], padding = "SAME", strides = [1, 1, 1, 1], use_cudnn_on_gpu = true} : (tensor<32x32x32x3xf32>, tensor<*xf32>) -> tensor<32x?x?x?xf32>
%4 = shape.shape_of %3 : tensor<32x?x?x?xf32> -> tensor<4xindex>
%5 = stablehlo.dynamic_broadcast_in_dim %1, %4, dims = [3] : (tensor<*xf32>, tensor<4xindex>) -> tensor<32x?x?x?xf32>
%6 = stablehlo.add %3, %5 : tensor<32x?x?x?xf32>
%7 = shape.shape_of %6 : tensor<32x?x?x?xf32> -> tensor<4xindex>
%8 = stablehlo.dynamic_broadcast_in_dim %0, %7, dims = [] : (tensor<f32>, tensor<4xindex>) -> tensor<32x?x?x?xf32>
%9 = stablehlo.maximum %8, %6 : tensor<32x?x?x?xf32>
return %9 : tensor<32x?x?x?xf32>
}
}
```
```shell
$ cat model.mhlo
module {
func.func @__inference_infer_func_49(%arg0: tensor<32x32x32x3xf32>, %arg1: tensor<*x!tf_type.resource>, %arg2: tensor<*x!tf_type.resource>) -> tensor<32x?x?x?xf32> {
%0 = mhlo.constant dense<0.000000e+00> : tensor<f32>
%1 = "tf.ReadVariableOp"(%arg2) {device = ""} : (tensor<*x!tf_type.resource>) -> tensor<*xf32>
%2 = "tf.ReadVariableOp"(%arg1) {device = ""} : (tensor<*x!tf_type.resource>) -> tensor<*xf32>
%3 = "tf.Conv2D"(%arg0, %2) {data_format = "NHWC", device = "", dilations = [1, 1, 1, 1], explicit_paddings = [], padding = "SAME", strides = [1, 1, 1, 1], use_cudnn_on_gpu = true} : (tensor<32x32x32x3xf32>, tensor<*xf32>) -> tensor<32x?x?x?xf32>
%4 = shape.shape_of %3 : tensor<32x?x?x?xf32> -> tensor<4xindex>
%5 = "mhlo.dynamic_broadcast_in_dim"(%1, %4) {broadcast_dimensions = dense<3> : tensor<1xi64>} : (tensor<*xf32>, tensor<4xindex>) -> tensor<32x?x?x?xf32>
%6 = mhlo.add %3, %5 : tensor<32x?x?x?xf32>
%7 = shape.shape_of %6 : tensor<32x?x?x?xf32> -> tensor<4xindex>
%8 = "mhlo.dynamic_broadcast_in_dim"(%0, %7) {broadcast_dimensions = dense<> : tensor<0xi64>} : (tensor<f32>, tensor<4xindex>) -> tensor<32x?x?x?xf32>
%9 = mhlo.maximum %8, %6 : tensor<32x?x?x?xf32>
return %9 : tensor<32x?x?x?xf32>
}
}
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59857/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59857/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59856 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59856/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59856/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59856/events | https://github.com/tensorflow/tensorflow/pull/59856 | 1,605,708,881 | PR_kwDOArmXAs5LEiLg | 59,856 | Update version numbers for TensorFlow 2.12.0-rc1 | {
"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-03-01T21:45:09 | 2023-03-02T00:28:42 | 2023-03-01T23:03:47 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59856",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59856",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59856.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59856.patch",
"merged_at": "2023-03-01T23:03:47"
} | Before merging this PR, please double check that it has correctly updated
`core/public/version.h`, `tools/pip_package/setup.py`, and
`tensorflow/tensorflow.bzl`. Also review the execution notes below:
```
Major: 2 -> 2
Minor: 12 -> 12
Patch: 0 -> 0
No lingering old version strings "2.12.0-rc0" found in source directory
"tensorflow/". Good.
WARNING: Below are potentially instances of lingering old version string
"2.12.0rc0" in source directory "tensorflow/" that are not updated by this
script. Please check them manually!
tensorflow/tools/pip_package/setup.py:130:2.12.0rc0
tensorflow/tools/pip_package/setup.py:132:2.12.0rc0
``` | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59856/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59856/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59855 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59855/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59855/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59855/events | https://github.com/tensorflow/tensorflow/issues/59855 | 1,605,699,891 | I_kwDOArmXAs5ftQkz | 59,855 | Can't install tflite-model-maker from pip or github | {
"login": "MartinKlefas",
"id": 12558370,
"node_id": "MDQ6VXNlcjEyNTU4Mzcw",
"avatar_url": "https://avatars.githubusercontent.com/u/12558370?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MartinKlefas",
"html_url": "https://github.com/MartinKlefas",
"followers_url": "https://api.github.com/users/MartinKlefas/followers",
"following_url": "https://api.github.com/users/MartinKlefas/following{/other_user}",
"gists_url": "https://api.github.com/users/MartinKlefas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MartinKlefas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MartinKlefas/subscriptions",
"organizations_url": "https://api.github.com/users/MartinKlefas/orgs",
"repos_url": "https://api.github.com/users/MartinKlefas/repos",
"events_url": "https://api.github.com/users/MartinKlefas/events{/privacy}",
"received_events_url": "https://api.github.com/users/MartinKlefas/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 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": 1188421838,
"node_id": "MDU6TGFiZWwxMTg4NDIxODM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows",
"name": "subtype:windows",
"color": "b619ea",
"default": false,
"description": "Windows Build/Installation Issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
},
{
"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"
}
] | open | false | {
"login": "lu-wang-g",
"id": 47436172,
"node_id": "MDQ6VXNlcjQ3NDM2MTcy",
"avatar_url": "https://avatars.githubusercontent.com/u/47436172?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lu-wang-g",
"html_url": "https://github.com/lu-wang-g",
"followers_url": "https://api.github.com/users/lu-wang-g/followers",
"following_url": "https://api.github.com/users/lu-wang-g/following{/other_user}",
"gists_url": "https://api.github.com/users/lu-wang-g/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lu-wang-g/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lu-wang-g/subscriptions",
"organizations_url": "https://api.github.com/users/lu-wang-g/orgs",
"repos_url": "https://api.github.com/users/lu-wang-g/repos",
"events_url": "https://api.github.com/users/lu-wang-g/events{/privacy}",
"received_events_url": "https://api.github.com/users/lu-wang-g/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "lu-wang-g",
"id": 47436172,
"node_id": "MDQ6VXNlcjQ3NDM2MTcy",
"avatar_url": "https://avatars.githubusercontent.com/u/47436172?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lu-wang-g",
"html_url": "https://github.com/lu-wang-g",
"followers_url": "https://api.github.com/users/lu-wang-g/followers",
"following_url": "https://api.github.com/users/lu-wang-g/following{/other_user}",
"gists_url": "https://api.github.com/users/lu-wang-g/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lu-wang-g/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lu-wang-g/subscriptions",
"organizations_url": "https://api.github.com/users/lu-wang-g/orgs",
"repos_url": "https://api.github.com/users/lu-wang-g/repos",
"events_url": "https://api.github.com/users/lu-wang-g/events{/privacy}",
"received_events_url": "https://api.github.com/users/lu-wang-g/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 | [
"@MartinKlefas \r\nSorry for the late reply. Could you please try to install using `pip install tflite-model-maker` with python 3.8. I was able to install the tflite-model-maker with python 3.8. Please refer to the below screenshot:\r\n![Screenshot (124)](https://user-images.githubusercontent.com/111861663/223298206-d01fb015-c958-48df-97b1-1855093e51ef.png)\r\n![Screenshot (125)](https://user-images.githubusercontent.com/111861663/223298226-7e79ea74-acf2-4f31-b79a-fb91d1ef467e.png)\r\nAnd also please refer to the similar [issue](https://github.com/tensorflow/tensorflow/issues/59323) and let us know if it helps.\r\n\r\nThank you!\r\n",
"Thanks for the suggestion, this time it got a lot further than usual, and didn't download all the nightly builds, but I did still end up with the below error:\r\n`\r\nINFO: pip is looking at multiple versions of dm-tree to determine which version is compatible with other requirements. This could take a while.\r\nCollecting dm-tree\r\n Downloading dm_tree-0.1.7-cp38-cp38-win_amd64.whl (91 kB)\r\n ---------------------------------------- 91.0/91.0 kB ? eta 0:00:00\r\n Downloading dm_tree-0.1.6-cp38-cp38-win_amd64.whl (75 kB)\r\n ---------------------------------------- 75.1/75.1 kB 4.1 MB/s eta 0:00:00\r\n Downloading dm_tree-0.1.5-cp38-cp38-win_amd64.whl (83 kB)\r\n ---------------------------------------- 84.0/84.0 kB ? eta 0:00:00\r\nINFO: pip is looking at multiple versions of etils[enp,epath] to determine which version is compatible with other requirements. This could take a while.\r\n Downloading dm-tree-0.1.4.tar.gz (33 kB)\r\n Preparing metadata (setup.py) ... done\r\n Downloading dm-tree-0.1.2.tar.gz (31 kB)\r\n Preparing metadata (setup.py) ... done\r\n Downloading dm-tree-0.1.1.tar.gz (30 kB)\r\n Preparing metadata (setup.py) ... done\r\nINFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.\r\nINFO: pip is looking at multiple versions of decorator to determine which version is compatible with other requirements. This could take a while.\r\nCollecting decorator>=3.0.0\r\n Downloading decorator-5.1.0-py3-none-any.whl (9.1 kB)\r\nINFO: pip is looking at multiple versions of dm-tree to determine which version is compatible with other requirements. This could take a while.\r\nINFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.\r\n Downloading decorator-5.0.9-py3-none-any.whl (8.9 kB)\r\n Downloading decorator-5.0.8-py3-none-any.whl (8.9 kB)\r\n Downloading decorator-5.0.7-py3-none-any.whl (8.8 kB)\r\n Downloading decorator-5.0.6-py3-none-any.whl (8.8 kB)\r\n Downloading decorator-5.0.5-py3-none-any.whl (8.8 kB)\r\n Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)\r\nINFO: pip is looking at multiple versions of decorator to determine which version is compatible with other requirements. This could take a while.\r\n Downloading decorator-4.4.1-py2.py3-none-any.whl (9.2 kB)\r\n Downloading decorator-4.4.0-py2.py3-none-any.whl (8.3 kB)\r\n Downloading decorator-4.3.2-py2.py3-none-any.whl (9.1 kB)\r\n Downloading decorator-4.3.1-py2.py3-none-any.whl (8.8 kB)\r\n Downloading decorator-4.3.0-py2.py3-none-any.whl (9.2 kB)\r\nINFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.\r\n Downloading decorator-4.2.1-py2.py3-none-any.whl (9.3 kB)\r\n Downloading decorator-4.1.2-py2.py3-none-any.whl (9.1 kB)\r\n Downloading decorator-4.1.1-py2.py3-none-any.whl (9.0 kB)\r\n Downloading decorator-4.1.0-py2.py3-none-any.whl (9.0 kB)\r\n Downloading decorator-4.0.11-py2.py3-none-any.whl (8.9 kB)\r\n Downloading decorator-4.0.10-py2.py3-none-any.whl (9.2 kB)\r\n Downloading decorator-4.0.9-py2.py3-none-any.whl (22 kB)\r\n Downloading decorator-4.0.6-py2.py3-none-any.whl (21 kB)\r\n Downloading decorator-4.0.4-py2.py3-none-any.whl (8.7 kB)\r\n Downloading decorator-4.0.3-py2.py3-none-any.whl (8.5 kB)\r\n Downloading decorator-4.0.2-py2.py3-none-any.whl (8.5 kB)\r\n Downloading decorator-4.0.1-py2.py3-none-any.whl (8.5 kB)\r\n Downloading decorator-4.0.0-py2.py3-none-any.whl (8.6 kB)\r\n Downloading decorator-3.4.2.tar.gz (6.1 kB)\r\n Preparing metadata (setup.py) ... error\r\n error: subprocess-exited-with-error\r\n\r\n × python setup.py egg_info did not run successfully.\r\n │ exit code: 1\r\n ╰─> [1 lines of output]\r\n error in decorator setup command: use_2to3 is invalid.\r\n [end of output]\r\n\r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\nerror: metadata-generation-failed\r\n\r\n× Encountered error while generating package metadata.\r\n╰─> See above for output.\r\n\r\nnote: This is an issue with the package mentioned above, not pip.\r\nhint: See above for details.\r\n\r\n`\r\n\r\nFull install log is here: https://1drv.ms/t/s!AjAaK-BVbphXliztpWTdIGmr3Kf3?e=O5nb8I",
"If I follow the suggestion in the other issue and install with `--no-dependencies` then pip complains about missing dependencies next time I need a package, and the example code won't run.\r\n\r\nI'm using the same code on a docker though that came with pre-installed tflite model maker - so I know it's this conda environment, and not the code that's the problem.",
"Hi, I was able to install `tflite_model-maker` and `tflite-model-maker-nightly` using pip without any errors. \r\nPlease find the gist attached [here](https://colab.sandbox.google.com/gist/sachinprasadhs/5ef2dab8f4ed8636eae3368120f35061/59855.ipynb) for reference. Thanks!",
"Thanks for the update. In almost all your pip lines it states: Requirement already satisfied\r\nMy install still failed from a completely clean conda environment though. Pip still could not work out which of the various dependent packages to use. Maybe it's because I'm on windows or something??\r\n\r\nPlease see attached the full log below - far too much to paste into this box, but suffice to say it's a fail.\r\n[tflite model maker install.txt](https://github.com/tensorflow/tensorflow/files/11157832/tflite.model.maker.install.txt)\r\n",
"I'm getting requirement already satisfied because I ran the `tflite_model-maker` in same session before trying nightly.\r\n\r\nTo understand more about the issue, could you please create a new conda environment using `conda create -n venv_name`\r\nand install pip using `conda install pip` and try again installing `pip install tflite_model-maker`",
"OK, doing that will result in the even worse errors of my first post, because it'll be python 3.11.2 that gets used. It'll take an hour or so to fail, and will download hundreds of tf_models_nightly packages with dates at the end of their names. I'll post back the results shortly.",
"I was wrong, it took a little under an hour, and output 1382 lines before hitting an error. As mentioned though, when not specifying a lower version of Python it tries installing every daily build.\r\n\r\n[Python 3.11.2 install log](https://github.com/tensorflow/tensorflow/files/11221760/install_log.txt)\r\n\r\nToday when I made another completely fresh python 3.8 environment it seems to have installed successfully, which is a first. It didn't use any nightly packages, but still needed to test hundreds of different packages for compatibility and took over 20 minutes to do the install - and my computer is reasonably well specced. \r\n[Python 3.8 install](https://github.com/tensorflow/tensorflow/files/11221811/old_install.txt)\r\n\r\nAnyway despite it looking like it worked, some of the python import lines still seem to fail:\r\n\r\n`2023-04-13 12:54:25.349815: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found\r\n2023-04-13 12:54:25.349995: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.\r\nC:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\read_weights.py:28: FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar.\r\n np.uint8, np.uint16, np.object, np.bool]\r\nTraceback (most recent call last):\r\n File \"main.py\", line 8, in <module>\r\n from tflite_model_maker import model_spec\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tflite_model_maker\\__init__.py\", line 44, in <module>\r\n from tflite_model_maker import audio_classifier\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tflite_model_maker\\audio_classifier\\__init__.py\", line 24, in <module>\r\n from tensorflow_examples.lite.model_maker.core.data_util.audio_dataloader import DataLoader\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflow_examples\\lite\\model_maker\\core\\data_util\\audio_dataloader.py\", line 27, in <module>\r\n from tensorflow_examples.lite.model_maker.core.task.model_spec import audio_spec\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflow_examples\\lite\\model_maker\\core\\task\\model_spec\\__init__.py\", line 20, in <module>\r\n from tensorflow_examples.lite.model_maker.core.task.model_spec import audio_spec\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflow_examples\\lite\\model_maker\\core\\task\\model_spec\\audio_spec.py\", line 29, in <module>\r\n from tensorflow_examples.lite.model_maker.core.task import model_util\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflow_examples\\lite\\model_maker\\core\\task\\model_util.py\", line 28, in <module>\r\n from tensorflowjs.converters import converter as tfjs_converter\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\__init__.py\", line 21, in <module>\r\n from tensorflowjs import converters\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\converters\\__init__.py\", line 21, in <module>\r\n from tensorflowjs.converters.converter import convert\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\converters\\converter.py\", line 35, in <module>\r\n from tensorflowjs.converters import keras_h5_conversion as conversion\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\converters\\keras_h5_conversion.py\", line 33, in <module>\r\n from tensorflowjs import write_weights # pylint: disable=import-error\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\write_weights.py\", line 25, in <module>\r\n from tensorflowjs import read_weights\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\tensorflowjs\\read_weights.py\", line 28, in <module>\r\n np.uint8, np.uint16, np.object, np.bool]\r\n File \"C:\\Users\\martin\\miniconda3\\envs\\13042023OldPython\\lib\\site-packages\\numpy\\__init__.py\", line 305, in __getattr__\r\n raise AttributeError(__former_attrs__[attr])\r\nAttributeError: module 'numpy' has no attribute 'object'.\r\n`np.object` was a deprecated alias for the builtin `object`. To avoid this error in existing code, use `object` by itself. Doing this will not modify any behavior and is safe.\r\nThe aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:\r\n https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations`\r\n",
"Same problem for me, in a google colab notebook ",
"Another nice way to do this within colab notebooks is to clone the tensorflow repo and then modify the requirements.txt file so you can control the versions of packages installed. Had a few errors, but was able to modify versions and everything worked fine. Make sure you remove the -q flag so you can get the verbose output to find where the dependency errors are.\r\n\r\nClone the repo:\r\n!git clone https://github.com/tensorflow/examples.git\r\n\r\nNavigate to the directory with the setup.py script\r\ncd examples/tensorflow_examples/lite/model_maker/pip_package\r\n\r\nInstall tflite-model-maker and the required dependencies\r\n!pip3 install -e .\r\n\r\nIf there are errors, modify the requirements.txt file in the model maker dir - when running verbose it will tell you where the error is\r\nand you can modify accordingly. \r\nexamples/tensorflow_examples/lite/model_maker\r\n\r\nThen keep running (!pip3 install -e . )until there are no errors and you'll be good to go.\r\n",
"I had this same issue using python 3.10 so I tried to use 3.8. Then I hit a new issue with the `orbax` package which was recently renamed.\r\n\r\nCreating a new conda environment with python 3.9 successfully installed without issue.\r\n```\r\nconda create -n object-detection python=3.9\r\nconda activate object-detection\r\npip install tflite-model-maker\r\n```",
"The installation of the tflite-model-maker with the pip command keeps crashing on Google Colab. Either due to requirements not being found, or the disk running out of space. As a result, cannot complete the Flower Classification tutorial.",
"> I had this same issue using python 3.10 so I tried to use 3.8. Then I hit a new issue with the `orbax` package which was recently renamed.\r\n> \r\n> Creating a new conda environment with python 3.9 successfully installed without issue.\r\n> \r\n> ```\r\n> conda create -n object-detection python=3.9\r\n> conda activate object-detection\r\n> pip install tflite-model-maker\r\n> ```\r\n\r\nWorked for me! Thanks, man!",
"> The installation of the tflite-model-maker with the pip command keeps crashing on Google Colab. Either due to requirements not being found, or the disk running out of space. As a result, cannot complete the Flower Classification tutorial.\r\n\r\nI'm having the same issues, tried updating pip but it didn't help, I also tried reverting to python 3.9 on my own machine but the program still has problems with the _numba_ version, the required one would be the 0.53 but that particular version is not available",
"> > The installation of the tflite-model-maker with the pip command keeps crashing on Google Colab. Either due to requirements not being found, or the disk running out of space. As a result, cannot complete the Flower Classification tutorial.\r\n> \r\n> I'm having the same issues, tried updating pip but it didn't help, I also tried reverting to python 3.9 on my own machine but the program still has problems with the _numba_ version, the required one would be the 0.53 but that particular version is not available\r\n\r\nTry installing numba 0.53.0 with: pip install numba==0.53.0 \r\nThis version works with python 3.9",
"> > > The installation of the tflite-model-maker with the pip command keeps crashing on Google Colab. Either due to requirements not being found, or the disk running out of space. As a result, cannot complete the Flower Classification tutorial.\r\n> > \r\n> > \r\n> > I'm having the same issues, tried updating pip but it didn't help, I also tried reverting to python 3.9 on my own machine but the program still has problems with the _numba_ version, the required one would be the 0.53 but that particular version is not available\r\n> \r\n> Try installing numba 0.53.0 with: pip install numba==0.53.0 This version works with python 3.9\r\n\r\nI also got the issue where it tried downloading a million nightly builds. I tried installing this version of numba but got this\r\n\r\n`Failed to build numba llvmlite\r\nERROR: Could not build wheels for numba, llvmlite, which is required to install pyproject.toml-based projects`",
"Yo, @StainlessStlRat ,\r\nYou can always clone the tflite-model-maker repo and troubleshoot by modifying the 'requirements.txt' file (this is in the model_maker directory). That way as missing dependencies come up you can modify as needed or install versions of packages with conflicts. The big one to change is the scann version to scann==1.2.8. There are a couple of others that will cause issue, but I'll leave that to you.\r\n\r\nLink to pypi: https://pypi.org/project/tflite-model-maker/0.4.3/\r\n\r\ngit clone https://github.com/tensorflow/examples\r\ncd examples/tensorflow_examples/lite/model_maker/pip_package\r\npip install -e .\r\n\r\nI only imported the tflite_model_maker packages and confirmed they import properly, but did not run any of the examples. That said, this worked as of an hour ago.",
"@ldiangelis \r\nwhats your python version? are u running in docker? whats the runtime arch? Linux x86_64?\r\nI figured there is no way to run model-maker on m1 chips unless you run in docker",
"I finally busted out my old Mac and followed the guide and got it to work, but I can't believe I didn't think to run it in Docker. Is there a pre-built image for that? I already trained my models but of course will need to do it again in the future.",
"- I was not able to install model maker lib on differnt docker images (mostly older ubuntu)\r\n- Based on other threads and commentary I got a feeling that tensorflow is not being actively maintained (dead?)\r\n- Trying pytorch approach",
"I did manage to use tensorflow lite inside colab by modifying the requirements.txt contained in the model training tutorial. \r\nI am not sure if this can help since the last time I worked on that piece of software was six months ago.\r\n\r\nHere is my [requirements.txt](https://github.com/FilippoGuarda/Colabs/blob/main/requirements.txt) file\r\n\r\n> * Based on other threads and commentary I got a feeling that tensorflow is not being actively maintained (dead?)\r\n\r\n yeah, it looks like tensorflow lite has been left on the sideline for a while. "
] | 2023-03-01T21:36:38 | 2024-06-05T12:17:57 | null | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.11
### Custom Code
Yes
### OS Platform and Distribution
Windows 10 home 19045
### Mobile device
_No response_
### Python version
3.10.9
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
pip install tfl-model-maker tries to install over 500 nightly builds, and then fails when it installs the sixth version of sentencepiece
I tried:
git clone https://github.com/tensorflow/examples
cd examples/tensorflow_examples/lite/model_maker/pip_package
pip install -e .
but this fails with:
ERROR: Could not find a version that satisfies the requirement tflite-support>=0.4.2 (from tflite-model-maker) (from versions: 0.1.0a0.dev3, 0.1.0a0.dev4, 0.1.0a0.dev5, 0.1.0a0, 0.1.0a1)
ERROR: No matching distribution found for tflite-support>=0.4.2
This is all on a clean anaconda environment - the pip command is the first I've run in it.
There's a copy of the pip output online here: https://1drv.ms/t/s!AjAaK-BVbphXlhwIM_9IpsnL0y8z?e=49lK1J
```
### Standalone code to reproduce the issue
```shell
pip install tflite-model-maker
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59855/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59855/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59854 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59854/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59854/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59854/events | https://github.com/tensorflow/tensorflow/pull/59854 | 1,605,692,878 | PR_kwDOArmXAs5LEev9 | 59,854 | r2.12 cherry-pick: 45d39e3879d "[Linaro:ARM_CI] Switch to using Docker container with Dual ABI" | {
"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-03-01T21:29:58 | 2023-03-02T19:54:06 | 2023-03-02T02:03:21 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59854",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59854",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59854.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59854.patch",
"merged_at": "2023-03-02T02:03:20"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/45d39e3879d8304b0c7962e0b3ef7ded6e6ad581 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59854/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59854/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59853 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59853/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59853/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59853/events | https://github.com/tensorflow/tensorflow/issues/59853 | 1,605,596,327 | I_kwDOArmXAs5fs3Sn | 59,853 | Selectively build TFLite for IOS failure | {
"login": "heguanyu",
"id": 5394318,
"node_id": "MDQ6VXNlcjUzOTQzMTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/5394318?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/heguanyu",
"html_url": "https://github.com/heguanyu",
"followers_url": "https://api.github.com/users/heguanyu/followers",
"following_url": "https://api.github.com/users/heguanyu/following{/other_user}",
"gists_url": "https://api.github.com/users/heguanyu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/heguanyu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/heguanyu/subscriptions",
"organizations_url": "https://api.github.com/users/heguanyu/orgs",
"repos_url": "https://api.github.com/users/heguanyu/repos",
"events_url": "https://api.github.com/users/heguanyu/events{/privacy}",
"received_events_url": "https://api.github.com/users/heguanyu/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 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": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "terryheo",
"id": 2908505,
"node_id": "MDQ6VXNlcjI5MDg1MDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/2908505?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/terryheo",
"html_url": "https://github.com/terryheo",
"followers_url": "https://api.github.com/users/terryheo/followers",
"following_url": "https://api.github.com/users/terryheo/following{/other_user}",
"gists_url": "https://api.github.com/users/terryheo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/terryheo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/terryheo/subscriptions",
"organizations_url": "https://api.github.com/users/terryheo/orgs",
"repos_url": "https://api.github.com/users/terryheo/repos",
"events_url": "https://api.github.com/users/terryheo/events{/privacy}",
"received_events_url": "https://api.github.com/users/terryheo/received_events",
"type": "User",
"site_admin": false
},
{
"login": "yishuangP",
"id": 6421220,
"node_id": "MDQ6VXNlcjY0MjEyMjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/6421220?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/yishuangP",
"html_url": "https://github.com/yishuangP",
"followers_url": "https://api.github.com/users/yishuangP/followers",
"following_url": "https://api.github.com/users/yishuangP/following{/other_user}",
"gists_url": "https://api.github.com/users/yishuangP/gists{/gist_id}",
"starred_url": "https://api.github.com/users/yishuangP/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/yishuangP/subscriptions",
"organizations_url": "https://api.github.com/users/yishuangP/orgs",
"repos_url": "https://api.github.com/users/yishuangP/repos",
"events_url": "https://api.github.com/users/yishuangP/events{/privacy}",
"received_events_url": "https://api.github.com/users/yishuangP/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
},
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @heguanyu Thanks for reporting the issue.\r\n\r\nCan you please provide the steps followed along with the toy model to reproduce the issue.\r\n\r\nThanks.\r\n",
"Hi @pjpratik , please find the toy model attached. \r\n\r\nReproduce is simple\r\n\r\n1. Fetch tensorflow repo\r\n2. Run ./configure and enable iOS while disable all others. \r\n3. Copy the model into repo's directory\r\n4. bash tensorflow/lite/ios/build_frameworks.sh --input_models=toy_tflite_model_20230308.tflite --target_archs=x86_64,armv7,arm64\r\n\r\nAnd will see the error like \r\nStarting local Bazel server and connecting to it...\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=280\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 --action_env PYTHON_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages --python_path=/Applications/Xcode.app/Contents/Developer/usr/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nWARNING: --verbose_explanations has no effect when --explain=<file> is not enabled\r\nINFO: Analyzed target //tensorflow/lite/ios/tmp:TensorFlowLiteC_framework (138 packages loaded, 7435 targets configured).\r\nINFO: Found 1 target...\r\nERROR: /Users/xx/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD:4:24: Compiling tensorflow/lite/ios/tmp/custom_c_api_registration_registration.cc failed: undeclared inclusion(s) in rule '//tensorflow/lite/ios/tmp:custom_c_api_create_op_resolver':\r\nthis rule is missing dependency declarations for the following files included by 'tensorflow/lite/ios/tmp/custom_c_api_registration_registration.cc':\r\n 'tensorflow/lite/core/shims/builtin_ops_list.inc'\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteC_framework failed to build\r\nINFO: Elapsed time: 12.037s, Critical Path: 5.02s\r\nINFO: 15 processes: 11 internal, 4 local.\r\nFAILED: Build did NOT complete successfully\r\n\r\n[toy_tflite_model_20230308.tflite.zip](https://github.com/tensorflow/tensorflow/files/10925472/toy_tflite_model_20230308.tflite.zip)\r\n",
"@heguanyu Thanks for the information\r\n\r\nI was able to reproduce this issue on Mac M1 with Bazel 5.3.0. Please find the screenshot below.\r\n\r\n<img width=\"784\" alt=\"Screenshot 2023-03-09 at 4 50 06 PM\" src=\"https://user-images.githubusercontent.com/118897289/224008908-90afea11-2ada-4a54-a707-f5be9288733a.png\">\r\n\r\n@sachinprasadhs Could you please look into this issue? Thanks.",
"@yishuangP is this a known issue?",
"> @yishuangP is this a known issue?\r\n\r\nThis is not a known issue. Will take a look.",
"We need to update tensorflow/lite/ios/build_frameworks.sh, it is outdated. In the meantime, can you try building each framework manually? For example, the c framework https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/ios/BUILD.apple#L102, and the selected ops framework:https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/ios/BUILD.apple#L153",
"Hi, update on this, submitting a change to fix this. In the meantime if you wanna build selective build, can you try adding the following snippet here https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/ios/build_frameworks.sh#L88:\r\n```\r\n' deps = ['\r\n' \"//tensorflow/lite/core/shims:builtin_ops_list\",'\r\n' ],'\r\n```",
"> Hi, update on this, submitting a change to fix this. In the meantime if you wanna build selective build, can you try adding the following snippet here https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/ios/build_frameworks.sh#L88:\r\n> \r\n> ```\r\n> ' deps = ['\r\n> ' \"//tensorflow/lite/core/shims:builtin_ops_list\",'\r\n> ' ],'\r\n> ```\r\n\r\nHi @yishuangP I tried adding the deps in build_frameworks.sh line 88, and the same build script shows a different error as below:\r\n\r\nghe-mn2:tensorflow ghe:master]$ bash tensorflow/lite/ios/build_frameworks.sh --input_models=toy_tflite_model_20230308.tflite --target_archs=x86_64,armv7,arm64\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=317\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/python3 --action_env PYTHON_LIB_PATH=/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages --python_path=/Applications/Xcode.app/Contents/Developer/usr/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a2802dd24f62c14ae00d1691bb19a20d130ec68d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nWARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/4df50417fbbaec08d3f61c5d837bdb3b3f1915ae.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found\r\nERROR: Traceback (most recent call last):\r\n\tFile \"/Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD\", line 4, column 24, in <toplevel>\r\n\t\ttflite_custom_c_library(\r\n\tFile \"/Users/ghe/projects/tensorflow/tensorflow/lite/build_def.bzl\", line 630, column 26, in tflite_custom_c_library\r\n\t\tnative.cc_library(\r\nError in cc_library: cc_library(...) got multiple values for parameter 'deps'\r\nERROR: Skipping '//tensorflow/lite/ios/tmp:TensorFlowLiteC_framework': no such target '//tensorflow/lite/ios/tmp:TensorFlowLiteC_framework': target 'TensorFlowLiteC_framework' not declared in package 'tensorflow/lite/ios/tmp' defined by /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD\r\nWARNING: Target pattern parsing failed.\r\nERROR: no such target '//tensorflow/lite/ios/tmp:TensorFlowLiteC_framework': target 'TensorFlowLiteC_framework' not declared in package 'tensorflow/lite/ios/tmp' defined by /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD\r\nINFO: Elapsed time: 0.056s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (1 packages loaded)",
"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/59853\">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/59853\">No</a>\n",
"Hi Guanyu, my change is merged. Can you try again? I've verified it on my side.",
"Hi @yishuangP I tried updated the repo and run the command again, but seeing the error of missing TensorFlowLiteC_framework\r\n\r\n**target 'TensorFlowLiteC_framework' not declared in package 'tensorflow/lite/ios/tmp' defined by /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD**\r\n\r\n\r\n```\r\nghe-mn2:tensorflow ghe:master]$ bash tensorflow/lite/ios/build_frameworks.sh --input_models=toy_tflite_model_20230308.tflite --target_archs=x86_64,armv7,arm64\r\nINFO: Options provided by the client:\r\n Inherited 'common' options: --isatty=1 --terminal_columns=314\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n Inherited 'common' options: --experimental_repo_remote_exec\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.tf_configure.bazelrc:\r\n 'build' options: --action_env PYTHON_BIN_PATH=/Library/Developer/CommandLineTools/usr/bin/python3 --action_env PYTHON_LIB_PATH= /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages --python_path=/Library/Developer/CommandLineTools/usr/bin/python3\r\nINFO: Reading rc options for 'build' from /Users/ghe/projects/tensorflow/.bazelrc:\r\n 'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils\r\nINFO: Found applicable config definition build:short_logs in file /Users/ghe/projects/tensorflow/.bazelrc: --output_filter=DONT_MATCH_ANYTHING\r\nINFO: Found applicable config definition build:v2 in file /Users/ghe/projects/tensorflow/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1\r\nINFO: Found applicable config definition build:ios in file /Users/ghe/projects/tensorflow/.bazelrc: --apple_platform_type=ios --apple_bitcode=embedded --copt=-fembed-bitcode --copt=-Wno-c++11-narrowing --noenable_platform_specific_config --copt=-w --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --define=with_xla_support=false\r\nERROR: Traceback (most recent call last):\r\n\tFile \"/Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD\", line 4, column 24, in <toplevel>\r\n\t\ttflite_custom_c_library(\r\n\tFile \"/Users/ghe/projects/tensorflow/tensorflow/lite/build_def.bzl\", line 630, column 26, in tflite_custom_c_library\r\n\t\tnative.cc_library(\r\nError in cc_library: cc_library(...) got multiple values for parameter 'deps'\r\nERROR: Skipping '//tensorflow/lite/ios/tmp:TensorFlowLiteC_framework': no such target '//tensorflow/lite/ios/tmp:TensorFlowLiteC_framework': target 'TensorFlowLiteC_framework' not declared in package 'tensorflow/lite/ios/tmp' defined by /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD\r\nWARNING: Target pattern parsing failed.\r\nERROR: no such target '//tensorflow/lite/ios/tmp:TensorFlowLiteC_framework': target 'TensorFlowLiteC_framework' not declared in package 'tensorflow/lite/ios/tmp' defined by /Users/ghe/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD\r\nINFO: Elapsed time: 0.082s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (1 packages loaded)\r\n```",
"That is very weird. The `TensorFlowLiteC_framework` is supposed to be generated by this function https://github.com/tensorflow/tensorflow/blob/7fc287d1aa879420885098e03197f1c5fe09990f/tensorflow/lite/ios/build_frameworks.sh#L80 and writes it to the build file here https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/ios/build_frameworks.sh#L110. In this case, can you try creating the BUILD file in the tmp directly manually? You just need to copy the content from build_frameworks.sh",
"Hi @yishuangP ,\r\n\r\nI checked the BUILD file in tmp directory, and its content looks identical to the one in shell script, can you check if its contents are correct?\r\n\r\n```\r\nload(\"@build_bazel_rules_apple//apple:ios.bzl\", \"ios_static_framework\")\r\nload(\"//tensorflow/lite:build_def.bzl\", \"tflite_custom_c_library\")\r\nload(\"//tensorflow/lite/ios:ios.bzl\", \"TFL_MINIMUM_OS_VERSION\")\r\ntflite_custom_c_library(\r\n name = \"custom_c_api\",\r\n deps = [\r\n \"//tensorflow/lite/core/shims:builtin_ops_list\",\r\n ],\r\n models=[\"toy_tflite_model_20230308.tflite\",],\r\n)\r\nios_static_framework(\r\n name = \"TensorFlowLiteC_framework\",\r\n hdrs = [\r\n \"//tensorflow/lite/c:c_api_types.h\",\r\n \"//tensorflow/lite/ios:common.h\",\r\n \"//tensorflow/lite/ios:c_api.h\",\r\n \"//tensorflow/lite/ios:xnnpack_delegate.h\",\r\n ],\r\n bundle_name = \"TensorFlowLiteC\",\r\n minimum_os_version = TFL_MINIMUM_OS_VERSION,\r\n deps = [\r\n \":custom_c_api\",\r\n \"//tensorflow/lite/delegates/xnnpack:xnnpack_delegate\",\r\n ],\r\n)\r\n```",
"Yes, can you try building the TensorFlowLiteC_framework and see if it works?",
"I think your model also has flex ops right? So you also need TensorFlowLiteSelectTfOps_frameworkhttps://github.com/tensorflow/tensorflow/blob/db7a2b3b3c01ba2039b8bb0e78b4a4e85b83e672/tensorflow/lite/ios/build_frameworks.sh#L120. \r\n\r\nWhat confuses me is that why this script doesn't automatically generate the BUILD files for you. It should and I can verify it on my side. Can you try replacing BUILD with BUILD.apple?",
"Hi @heguanyu sorry I just realized you'll need to use `tflite_custom_cc_library` instead of `tflite_custom_c_library`. I'm sending out another PR for review.",
"Hi @yishuangP Thanks for the update! After changing to `tflite_custom_cc_library` in build_frameworks.sh, the above error is gone, but now seeing these errors:\r\n\r\n```\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid\r\nrealpath: illegal option -- -\r\nusage: realpath [-q] [path ...]\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 1132.618s, Critical Path: 66.45s\r\nINFO: 12518 processes: 3574 internal, 8944 local.\r\nFAILED: Build did NOT complete successfully\r\n```",
"Just pulled the latest version from git, still seeing the `'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule` error\r\n\r\n```\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)\r\nERROR: /Users/ghe/projects/tensorflow/tensorflow/BUILD:1128:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym [for host] failed: not all outputs were created or valid\r\nrealpath: illegal option -- -\r\nusage: realpath [-q] [path ...]\r\nTarget //tensorflow/lite/ios/tmp:TensorFlowLiteSelectTfOps_framework failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 591.530s, Critical Path: 121.72s\r\nINFO: 2120 processes: 20 internal, 2100 local.\r\nFAILED: Build did NOT complete successfully\r\n```",
"`This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)`\r\nHmm what's the python version you have? We have an internal job that runs this script and the job is working fine. It uses python 3.9.9. I think this error is related to some configuration issue.",
"@yishuangP I'm using 3.9.6 Let me update to 3.9.9 and try again. Is there anything I need to configure when running ./configure file? I only select \"yes\" for iOS question, all others are \"No\". ",
"> @yishuangP I'm using 3.9.6 Let me update to 3.9.9 and try again. Is there anything I need to configure when running ./configure file? I only select \"yes\" for iOS question, all others are \"No\".\r\n\r\nI think that is enough. Let me know if you run into any issues.",
"@yishuangP Unfortunately updating the python to 3.9.16 doesn't solve the problem. (I was not able to update to 3.9.9 specifically via homebrew) ",
"Hi guanyu, this seems a tooling issue on tensorflow side. Could you help file a separate issue for this?",
"Sure will do. thanks for looking into ios build part!",
"@yishuangP I filed a separate ticket https://github.com/tensorflow/tensorflow/issues/60088 can you help assign it to the correct team to look into it? Thank you!",
"Thanks for filing the issue!",
"Hey guys, stuck with the same problem, but trying to build an android ndk c tflite lib\r\ncompletely followed the reduce the binary size page instructions, tmp/BUILD file is the same\r\nNDK: 19.2.5345600, Python 3.9, every bazel var was set\r\n\r\n```\r\nERROR: /home/sait/tf_short/tensorflow/tmp/BUILD:7:24: Compiling tmp/selectively_built_c_lib_registration_registration.cc failed: undeclared inclusion(s) in rule '//tmp:selectively_built_c_lib_create_op_resolver':\r\nthis rule is missing dependency declarations for the following files included by 'tmp/selectively_built_c_lib_registration_registration.cc':\r\n 'tensorflow/lite/core/shims/builtin_ops_list.inc'\r\nTarget //tmp:tensorflowlite_c failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 20.528s, Critical Path: 8.48s\r\nINFO: 92 processes: 8 internal, 84 local.\r\nFAILED: Build did NOT complete successfully\r\n```\r\n\r\nwhen added \"//tensorflow/lite/core/shims:builtin_ops_list\", to deps\r\n```\r\nERROR: /home/sait/tf_short/tensorflow/tmp/BUILD:21:24: in cc_binary rule //tmp:libtensorflowlite_c.so: target '//tensorflow/lite/core/shims:builtin_ops_list' is not visible from target '//tmp:libtensorflowlite_c.so'. Check the visibility declaration of the former target if you think the dependency is legitimate\r\nERROR: /home/sait/tf_short/tensorflow/tmp/BUILD:21:24: Analysis of target '//tmp:libtensorflowlite_c.so' failed\r\nERROR: Analysis of target '//tmp:tensorflowlite_c' failed; build aborted: \r\nINFO: Elapsed time: 0.088s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (1 packages loaded, 5 targets configured)\r\n```\r\n\r\nbazel line is:\r\n`bazel build -c opt --cxxopt=--std=c++17 --config=android_arm64 //tmp:tensorflowlite_c`\r\n\r\nmicro update: \r\ntried adding aforementioned dep line into almost every cc_library thing in different BUILD files (mostly with word \"resolver\" in it, still doesnt work :(\r\n\r\n\r\n\r\n\r\n\r\n",
"Hi @heguanyu I was successfully able to build the TFLite framework after merges from @yishuangP. Please refer the screenshot here. FYI I have python 3.10.8 installed and it works fine.\r\n\r\n<img width=\"744\" alt=\"Screenshot 2023-03-24 at 9 48 04 PM\" src=\"https://user-images.githubusercontent.com/118897289/227582964-f88c8ef7-34d5-4a92-b6e4-4da122e699dd.png\">\r\n",
"update: downgraded to 2.11.0, everything worked!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you."
] | 2023-03-01T20:07:31 | 2023-04-10T01:51:45 | 2023-04-10T01:51:42 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.11.0
### Custom Code
No
### OS Platform and Distribution
MacOS Monterey 12.6.2
### Mobile device
N/A
### Python version
3.9
### Bazel version
5.3.0
### GCC/Compiler version
14.0.0
### CUDA/cuDNN version
_No response_
### GPU model and memory
N/A
### Current Behaviour?
```shell
I tried building a selective TFL framework following this guide(https://www.tensorflow.org/lite/guide/build_ios#selectively_build_tflite_frameworks). The model I fed into the command only uses builtin and select ops. However this command returns error.
ERROR: /Users/xx/projects/tensorflow/tensorflow/lite/ios/tmp/BUILD:4:24: Compiling tensorflow/lite/ios/tmp/custom_c_api_registration_registration.cc failed: undeclared inclusion(s) in rule '//tensorflow/lite/ios/tmp:custom_c_api_create_op_resolver':
this rule is missing dependency declarations for the following files included by 'tensorflow/lite/ios/tmp/custom_c_api_registration_registration.cc':
'tensorflow/lite/core/shims/builtin_ops_list.inc'
I tried adding shims:builtin_ops_list but it is not helping and keep failing.
```
### Standalone code to reproduce the issue
```shell
The original code is not working
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59853/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59853/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59852 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59852/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59852/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59852/events | https://github.com/tensorflow/tensorflow/issues/59852 | 1,605,372,419 | I_kwDOArmXAs5fsAoD | 59,852 | Issue created for Rollback of PR #59820: Cache the result of cuModuleGetFunction | {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"site_admin": false
} | [] | closed | false | {
"login": "benbarsdell",
"id": 3979096,
"node_id": "MDQ6VXNlcjM5NzkwOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/3979096?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benbarsdell",
"html_url": "https://github.com/benbarsdell",
"followers_url": "https://api.github.com/users/benbarsdell/followers",
"following_url": "https://api.github.com/users/benbarsdell/following{/other_user}",
"gists_url": "https://api.github.com/users/benbarsdell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benbarsdell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benbarsdell/subscriptions",
"organizations_url": "https://api.github.com/users/benbarsdell/orgs",
"repos_url": "https://api.github.com/users/benbarsdell/repos",
"events_url": "https://api.github.com/users/benbarsdell/events{/privacy}",
"received_events_url": "https://api.github.com/users/benbarsdell/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "benbarsdell",
"id": 3979096,
"node_id": "MDQ6VXNlcjM5NzkwOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/3979096?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benbarsdell",
"html_url": "https://github.com/benbarsdell",
"followers_url": "https://api.github.com/users/benbarsdell/followers",
"following_url": "https://api.github.com/users/benbarsdell/following{/other_user}",
"gists_url": "https://api.github.com/users/benbarsdell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benbarsdell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benbarsdell/subscriptions",
"organizations_url": "https://api.github.com/users/benbarsdell/orgs",
"repos_url": "https://api.github.com/users/benbarsdell/repos",
"events_url": "https://api.github.com/users/benbarsdell/events{/privacy}",
"received_events_url": "https://api.github.com/users/benbarsdell/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "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": "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 | [
"@frgossen any idea what caused the rollback here?",
"There was a missing dependency to TSL, which we fixed. The rollback was automatic and likely did not see that fix. Will try rolling it forward. ",
"https://github.com/tensorflow/tensorflow/commit/d094920c58070e179fd8e7737073923dc7cd6fa7\r\n"
] | 2023-03-01T17:23:42 | 2023-03-02T19:04:20 | 2023-03-02T19:04:20 | NONE | null | null | null | Merged PR #59820 is rolled back in 43ee0d82fe2939f7f77172085a9f3e6d76e56a32.
Please follow up with the reviewer and close this issue once its resolved. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59852/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59852/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59851 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59851/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59851/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59851/events | https://github.com/tensorflow/tensorflow/pull/59851 | 1,605,208,311 | PR_kwDOArmXAs5LC1vm | 59,851 | Fix endianness issues in arithmetic_optimizer_test.cc tests | {
"login": "jonathan-albrecht-ibm",
"id": 74002225,
"node_id": "MDQ6VXNlcjc0MDAyMjI1",
"avatar_url": "https://avatars.githubusercontent.com/u/74002225?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jonathan-albrecht-ibm",
"html_url": "https://github.com/jonathan-albrecht-ibm",
"followers_url": "https://api.github.com/users/jonathan-albrecht-ibm/followers",
"following_url": "https://api.github.com/users/jonathan-albrecht-ibm/following{/other_user}",
"gists_url": "https://api.github.com/users/jonathan-albrecht-ibm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jonathan-albrecht-ibm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jonathan-albrecht-ibm/subscriptions",
"organizations_url": "https://api.github.com/users/jonathan-albrecht-ibm/orgs",
"repos_url": "https://api.github.com/users/jonathan-albrecht-ibm/repos",
"events_url": "https://api.github.com/users/jonathan-albrecht-ibm/events{/privacy}",
"received_events_url": "https://api.github.com/users/jonathan-albrecht-ibm/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": 1097545273,
"node_id": "MDU6TGFiZWwxMDk3NTQ1Mjcz",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:grappler",
"name": "comp:grappler",
"color": "0052cc",
"default": false,
"description": "Grappler related issues"
},
{
"id": 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 @ezhulenev Can you please review this PR ? Thank you!",
"@ezhulenev, friendly ping :) Would you have some time to review this PR? Thank you!",
"Hi @ezhulenev Can you please review this PR ? Thank you!",
"TFTR @ezhulenev!",
"@ezhulenev @gbaned this PR has been approved for a while now. Is there something I need to do for it to be merged?",
"> @ezhulenev @gbaned this PR has been approved for a while now. Is there something I need to do for it to be merged?\r\n\r\nHi @jonathan-albrecht-ibm Sorry for the delay, this PR processing internally, nothing pending from you end. Thank you!",
"Here are the internal errors, @jonathan-albrecht-ibm can you please verify ? Thank you!\r\n\r\n/tensorflow/core/util/tensor_bundle/byte_swap_tensor.cc:150:56: error: no member named 'data' in 'absl::Cord'\r\n 150 | char* buff = const_cast<char*>((tp->tensor_content().data()));\r\n | ~~~~~~~~~~~~~~~~~~~~ ^\r\n1 error generated.\r\n\r\ntensorflow/core/util/tensor_bundle/byte_swap_tensor.cc:150:56: error: no member named 'data' in 'absl::Cord'\r\n 150 | char* buff = const_cast<char*>((tp->tensor_content().data()));\r\n | ~~~~~~~~~~~~~~~~~~~~ ^\r\n1 error generated.",
"@gbaned thanks for providing the details. Is there somewhere I can see the logs with the internal errors above?\r\n\r\nNot completely sure what's going on but it looks like `absl::Cord` is being used instead of `std::string` for the protobuf `tensor_content` field in this build? `tensor_content` has the protobuf type `bytes` which should be `std::string` in the c++ generated classes so not sure how this is happening. \r\n\r\n@gbaned @ezhulenev Any pointers on how to configure my local build to reproduce this error?",
"Hi @ezhulenev Can you please take a look on the above comment from @jonathan-albrecht-ibm. Thank you!",
"Hi @ezhulenev Any update on this PR? Please. Thank you!",
"@ezhulenev, @gbaned Not sure if something else changed but the MacOS build passed this time. The `Py+CPP Test Suite - Ubuntu CPU, Python 3.9` build failed though. I looked at the logs that I can access and it looks like the errors were due to timeouts IIUC.\r\n\r\nCould someone with more access confirm?",
"@gbaned just wanted to check on the status of this issue since the ready to pull label was removed. I don't have access to the internal CI. Are there any problems?"
] | 2023-03-01T15:41:37 | 2024-06-06T08:02:17 | null | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59851",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59851",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59851.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59851.patch",
"merged_at": null
} | Some tensorflow/core/grappler/optimizers/arithmetic_optimizer_test.cc tests check for expected tensor content values that are in little-endian format. This commit adds supporting functions so that big-endian platforms will convert to little-endian before checking. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59851/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59851/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59850 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59850/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59850/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59850/events | https://github.com/tensorflow/tensorflow/issues/59850 | 1,605,059,868 | I_kwDOArmXAs5fq0Uc | 59,850 | tf.scan: add axis argument to scan along a specific axis | {
"login": "LJKS",
"id": 22134518,
"node_id": "MDQ6VXNlcjIyMTM0NTE4",
"avatar_url": "https://avatars.githubusercontent.com/u/22134518?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LJKS",
"html_url": "https://github.com/LJKS",
"followers_url": "https://api.github.com/users/LJKS/followers",
"following_url": "https://api.github.com/users/LJKS/following{/other_user}",
"gists_url": "https://api.github.com/users/LJKS/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LJKS/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LJKS/subscriptions",
"organizations_url": "https://api.github.com/users/LJKS/orgs",
"repos_url": "https://api.github.com/users/LJKS/repos",
"events_url": "https://api.github.com/users/LJKS/events{/privacy}",
"received_events_url": "https://api.github.com/users/LJKS/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": 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"
}
] | 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 | [
"@LJKS,\r\nCould you please elaborate about the mentioned Feature. Also, please specify the Use Cases for this feature which helps us to analyse. Thank you!",
"tf.scan applies a function (arg: fn) in a stateful manner. It splits the input tensor (arg: elem) along axis 0 into n elements, where n=tf.shape(elem)[0]. It then applies the function iteratively while also updating/making use of the state to these n elements. The resulting elements are put together (stacked) into a tensor with leading dimension of equal size again. \r\n\r\nThe feature I'm requesting simple allows for splitting (and iterating over) the tensor along a different axis than the leading axis. Let's run through a potentially typical example, with a tensor of shape=[batch_size, time_steps, features]. Now instead of scanning (tf.scan) over the leading (batch) dimension, one might want to tf.scan over the time_steps axis. Let's assume 'my_bs_ts_feat_tensor' is such a tensor: \r\n\r\nI can currently scan along the timesteps axis by applying: \r\n\r\n```\r\nmy_bs_ts_feat_tensor = tf.transpose(my_bs_ts_feat_tensor, perm=[1,0,2])\r\nmy_bs_ts_feat_tensor = tf.scan(fn=some_scan_fn, elem=my_bs_ts_feat_tensor)\r\nmy_bs_ts_feat_tensor = tf.transpose(my_bs_ts_feat_tensor, perm=[1,0,2])\r\n```\r\n\r\nThe code above swaps the timestep-axis to the front via transpose, then scans the function along the now leading timestep axis, then transposes the timestep axis back and gets the batch-dim again as the leading dimension via transpose again. \r\n\r\nThe above should be equal to the result of calling tf.scan(my_bs_ts_feat_tensor, axis=1) in what I propose. Or generally instead the proposed behaviour could be achieved (and cheaply implemented) as follows: \r\n\r\nlet n_axes be the number of axes in the elem tensor (e.g. for my_bs_ts_feat_tensor of shape [batch_size, time_steps, features]: n_axes=3)\r\nlet axis the the axis argument I would like to propose in the scan function\r\n\r\nthen the proposed better scan with axis would be:\r\n\r\n```\r\ndef tf.better_scan(fn, elems, axis):\r\n #transpose target axis to front\r\n perm_1 = [axis] + [i for i in range(n_axes) if not i==axis]\r\n elems = tf.transpose(elems, perm=perm_1)\r\n #apply the actual scan\r\n elems = tf.scan(fn=fn, elems=elems)\r\n #permute the dimensions back to where they belong, by inserting the target axis (with axis-index zero in elem) into permutations where it belongs\r\n perm_2 = list(range(1,n_axes)).insert(axis,0) \r\n elems = tf.transpose(elems, perm=perm_2)\r\n return elem\r\n```\r\n\r\nUse-cases: \r\n - Lots of stuff working with time-dimensions\r\n - RL applications: E.g. computing the discounted rewards-to-go, TD-errors, Advantages, GAEs, etc.\r\n - Literally anything else where scan would be applied, and where not by chance the correct split is the batch dimension\r\n - Makes some really annoying preprocessing much easier\r\n - Makes some comparatively hard-to-read code much easier to read",
"Notes: \r\n - I can of course also provide a more TF appropriate version (permutations via tf.range and inferring n_axes via tf.shape(tf.shape(elems))) if there is any upside with that\r\n - The same change of adding a axis argument as proposed for scan here would of course also be great for tf.map_fn",
"Hi Thanks for the feature request.\r\nAs already suggested by you as the workaround to transpose and apply scan and transpose back again.\r\n```\r\nmy_bs_ts_feat_tensor = tf.transpose(my_bs_ts_feat_tensor, perm=[1,0,2])\r\nmy_bs_ts_feat_tensor = tf.scan(fn=some_scan_fn, elem=my_bs_ts_feat_tensor)\r\nmy_bs_ts_feat_tensor = tf.transpose(my_bs_ts_feat_tensor, perm=[1,0,2])\r\n``` \r\nWouldn't it makes more sense to use the same methods in all your code implementation, rather than adding a new feature. Thanks! ",
"Hi, \r\nI'm not sure I understand your answer correctly, but let me try: \r\n - The workaround obviously works perfectly\r\n - However it makes the code much less readable and creates high risk of mistakes for users with less experience\r\n - E.g. When scanning along the 4th axis (i.e. axis with index 3) of a tensor with 6 axes: \r\n - Perm1: [3,0,1,2,4,5]\r\n - Perm2: [1,2,3,0,4,5]\r\n - IMO the situation above is a very likely source for creating bugs, especially when code is handed over to other developers, as this is very much not 'intuitive'\r\n - From a usage perspective for operations which happen along a certain axis, in TF users are used to the axis argument\r\n \r\nAs such, with the fix being only ~4 lines of easy&quick code, and the change being non-breaking for existing code, this seems like an attractive feature to me. ",
"Hi @LJKS!\r\n\r\nThanks for the request! Would you like to contribute a PR to add this functionality alongside some tests?"
] | 2023-03-01T14:15:44 | 2023-05-11T01:11:25 | null | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Feature Request
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.11
### Custom Code
No
### OS Platform and Distribution
all
### Mobile device
-
### Python version
3.9
### Bazel version
-
### GCC/Compiler version
-
### CUDA/cuDNN version
-
### GPU model and memory
-
### Current Behaviour?
```shell
Current behaviour:
- tf.scan 'unrolls' the argument fn along axis 0.
Feature request:
- tf scan accepts the argument 'axis' (similar to many other tf operations), to specify along which axis the function is applied. The workaround is obviously simple (tf.transpose --> tf.scan --> tf.transpose; swapping the target axis to the front, applying scan, and swapping it back to where it belongs), but makes things awkward, especially in terms of readability.
There seem to be lots of possible use-cases, but especially for working with time-axes (Batch, Time, Features), where scan should be used over the time axis this seems useful. Lots of examples e.g. in Reinforcement Learning for computing rewards-to-go, MC-state-value samples, GAE, etc.
```
### Standalone code to reproduce the issue
```shell
# e.g. the 'rewards-to-go', here to be computed on a rewards-batch of shape [batch_size, timesteps]
def rewards_to_go(rewards, gamma=0.99):
discounted_rewards = tf.scan(lambda a, x: x + gamma * a, reverse=True, initializer=0., axis=1)
return discounted_rewards
```
### Relevant log output
```shell
-
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59850/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/59850/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59849 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59849/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59849/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59849/events | https://github.com/tensorflow/tensorflow/issues/59849 | 1,604,928,592 | I_kwDOArmXAs5fqURQ | 59,849 | Inconsistent Log Level in cuda_driver InternalInit() | {
"login": "josemalope",
"id": 71341168,
"node_id": "MDQ6VXNlcjcxMzQxMTY4",
"avatar_url": "https://avatars.githubusercontent.com/u/71341168?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/josemalope",
"html_url": "https://github.com/josemalope",
"followers_url": "https://api.github.com/users/josemalope/followers",
"following_url": "https://api.github.com/users/josemalope/following{/other_user}",
"gists_url": "https://api.github.com/users/josemalope/gists{/gist_id}",
"starred_url": "https://api.github.com/users/josemalope/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/josemalope/subscriptions",
"organizations_url": "https://api.github.com/users/josemalope/orgs",
"repos_url": "https://api.github.com/users/josemalope/repos",
"events_url": "https://api.github.com/users/josemalope/events{/privacy}",
"received_events_url": "https://api.github.com/users/josemalope/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "tiruk007",
"id": 111861663,
"node_id": "U_kgDOBqrfnw",
"avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tiruk007",
"html_url": "https://github.com/tiruk007",
"followers_url": "https://api.github.com/users/tiruk007/followers",
"following_url": "https://api.github.com/users/tiruk007/following{/other_user}",
"gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions",
"organizations_url": "https://api.github.com/users/tiruk007/orgs",
"repos_url": "https://api.github.com/users/tiruk007/repos",
"events_url": "https://api.github.com/users/tiruk007/events{/privacy}",
"received_events_url": "https://api.github.com/users/tiruk007/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tiruk007",
"id": 111861663,
"node_id": "U_kgDOBqrfnw",
"avatar_url": "https://avatars.githubusercontent.com/u/111861663?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tiruk007",
"html_url": "https://github.com/tiruk007",
"followers_url": "https://api.github.com/users/tiruk007/followers",
"following_url": "https://api.github.com/users/tiruk007/following{/other_user}",
"gists_url": "https://api.github.com/users/tiruk007/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tiruk007/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tiruk007/subscriptions",
"organizations_url": "https://api.github.com/users/tiruk007/orgs",
"repos_url": "https://api.github.com/users/tiruk007/repos",
"events_url": "https://api.github.com/users/tiruk007/events{/privacy}",
"received_events_url": "https://api.github.com/users/tiruk007/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@josemalope \r\n\r\nCould you please try to install TensorFlow 2.11 as per the [tested build configurations](https://www.tensorflow.org/install/source#gpu) and also try to update the GPU drivers. \r\n\r\nPlease refer to the similar [issue_1](https://github.com/tensorflow/tensorflow/issues/53341) & [issue_2](https://github.com/tensorflow/tensorflow/issues/41937) for reference and let us know if it helps.\r\n\r\nThank you !",
"Hi @tiruk007,\r\n\r\nThe message is expected since we are using CPU only (we already switched to tensorflow-cpu).\r\n\r\nHowever, I created the ticket to point out the inconsistency between the warning message: \r\nW tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)\r\nand the level at which it is logged: ERROR\r\n\r\nRegards,\r\nJose",
"@josemalope \r\nSorry for the late reply, tensorflow and tensorflow-gpu have been in the same package since TensorFlow 2.1([REF](https://pypi.org/project/tensorflow-gpu/)). Could you please use `pip install tensorflow-cpu` for cpu inferences to avoid unwanted warning like `W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)`. \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/59849\">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/59849\">No</a>\n"
] | 2023-03-01T12:58:15 | 2023-04-05T01:48:02 | 2023-04-05T01:48:00 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.11
### Custom Code
No
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
The following Warning is logged as ERROR:
W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
cuda_driver.cc
InternalInit()
LOG(ERROR) << "failed call to cuInit: " << ToString(res); (line 266)
In this case, tensorflow is running CPU inferences. Therefore, the warning is expected, but not al ERROR level
```
### Standalone code to reproduce the issue
```shell
cuda_driver.cc
InternalInit()
LOG(ERROR) << "failed call to cuInit: " << ToString(res); (line 266)
NO GPU
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59849/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59849/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59848 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59848/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59848/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59848/events | https://github.com/tensorflow/tensorflow/issues/59848 | 1,604,847,064 | I_kwDOArmXAs5fqAXY | 59,848 | `Unsupported object type numpy.ndarray` on multi-input `Dataset` | {
"login": "maifeeulasad",
"id": 29339330,
"node_id": "MDQ6VXNlcjI5MzM5MzMw",
"avatar_url": "https://avatars.githubusercontent.com/u/29339330?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maifeeulasad",
"html_url": "https://github.com/maifeeulasad",
"followers_url": "https://api.github.com/users/maifeeulasad/followers",
"following_url": "https://api.github.com/users/maifeeulasad/following{/other_user}",
"gists_url": "https://api.github.com/users/maifeeulasad/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maifeeulasad/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maifeeulasad/subscriptions",
"organizations_url": "https://api.github.com/users/maifeeulasad/orgs",
"repos_url": "https://api.github.com/users/maifeeulasad/repos",
"events_url": "https://api.github.com/users/maifeeulasad/events{/privacy}",
"received_events_url": "https://api.github.com/users/maifeeulasad/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": 1114343535,
"node_id": "MDU6TGFiZWwxMTE0MzQzNTM1",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:data",
"name": "comp:data",
"color": "0052cc",
"default": false,
"description": "tf.data related issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "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 | [
"@maifeeulasad,\r\nApologies for the delay!\r\nCould you please provide the complete code to reproduce the issue which helps us to analyse the issue in an effective way. 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/59848\">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/59848\">No</a>\n"
] | 2023-03-01T12:05:19 | 2023-04-04T01:55:19 | 2023-04-04T01:55:15 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Support
### Have you reproduced the bug with TF nightly?
No
### Source
binary
### Tensorflow Version
2.11.0
### Custom Code
Yes
### OS Platform and Distribution
Kaggle kernel
### Mobile device
_No response_
### Python version
3.7.12
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
I'm trying to return tuple to a dataset to be used in a multi-input model, but it's throwing an error saying: `Unsupported object type numpy.ndarray`. Previosuly I was setting shape, with `set_shape`, but right now I simply don't know how to set shape for a different input shape.
```
### Standalone code to reproduce the issue
```shell
def read_image(path, rel):
# blah blah blah, read somehow
return image
def read_image1(path1, filter0):
# blah blah blah, read somehow
return image
def preprocess(x, y):
def func(x, y):
x = json.loads(x)
x_img1 = read_image(x['path'], x['rel']) # 3D image
x_img2 = read_image(x['path-fork'], x['filter']) #2D image with different shape
# image resizing will lose data
y = tf.keras.utils.to_categorical(y, num_classes=len(set(df['label'].values))) # todo: yeah, i'll optimize it never
return (x_img1, x_img2), y
_x, _y = tf.numpy_function(func, [x, y], [tf.float32, tf.float32])
# _x.set_shape([256, 256, 3]) <--- previously i used to do this
_y.set_shape([10])
return _x, _y
# here `x` is an array of string, and those strings are actually json/dictionary
def tf_dataset(x,y, batch=16):
dataset = tf.data.Dataset.from_tensor_slices((x, y))
dataset = dataset.shuffle(buffer_size=1000)
dataset = dataset.map(preprocess)
dataset = dataset.batch(batch)
dataset = dataset.prefetch(16)
return dataset
```
### Relevant log output
```shell
InternalError: Graph execution error:
Unsupported object type numpy.ndarray
[[{{node PyFunc}}]]
[[IteratorGetNext]] [Op:__inference_train_function_30745]
```
Here is what I'm trying to do:
![multi input model with tf.data.Dataset](https://user-images.githubusercontent.com/29339330/222134871-4b2d6e7b-32b4-400c-8a91-0fc14a13ae11.png)
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59848/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59848/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59847 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59847/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59847/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59847/events | https://github.com/tensorflow/tensorflow/pull/59847 | 1,604,799,955 | PR_kwDOArmXAs5LBcuA | 59,847 | Update tensorflow/go/README.md | {
"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": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-03-01T11:36:30 | 2023-03-03T23:24:12 | 2023-03-03T18:03:53 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59847",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59847",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59847.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59847.patch",
"merged_at": "2023-03-03T18:03:53"
} | Current golang instructions here are not working.Hence removing the instructions and rerouting to the third party maintainer source. Also fixes #57214 . | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59847/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59847/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59846 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59846/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59846/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59846/events | https://github.com/tensorflow/tensorflow/issues/59846 | 1,604,579,096 | I_kwDOArmXAs5fo-8Y | 59,846 | Encounter segment error when trying to deploy tflite model | {
"login": "HJL8055",
"id": 66299911,
"node_id": "MDQ6VXNlcjY2Mjk5OTEx",
"avatar_url": "https://avatars.githubusercontent.com/u/66299911?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/HJL8055",
"html_url": "https://github.com/HJL8055",
"followers_url": "https://api.github.com/users/HJL8055/followers",
"following_url": "https://api.github.com/users/HJL8055/following{/other_user}",
"gists_url": "https://api.github.com/users/HJL8055/gists{/gist_id}",
"starred_url": "https://api.github.com/users/HJL8055/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HJL8055/subscriptions",
"organizations_url": "https://api.github.com/users/HJL8055/orgs",
"repos_url": "https://api.github.com/users/HJL8055/repos",
"events_url": "https://api.github.com/users/HJL8055/events{/privacy}",
"received_events_url": "https://api.github.com/users/HJL8055/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": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @HJL8055. Thanks for reporting the issue.\r\n\r\nSorry for the delayed response.\r\n\r\nAs per the [documentation](https://www.tensorflow.org/lite/performance/quantization_spec#symmetric_vs_asymmetric), the zero point of the weights in fully-connected layers is enforced to be zero to avoid the runtime cost of multiplying the zero point of the weight with the activation value. \r\n\r\nCan you please provide the model and steps you have followed in order to reproduce the issue and help troubleshooting process.\r\n\r\nThanks.",
"Closing as stale. Please reopen if you'd like to work on this further. Thanks!"
] | 2023-03-01T09:18:39 | 2023-03-17T09:25:32 | 2023-03-17T09:25:32 | NONE | null | null | null | ### 1. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Ubuntu 20.04.1
- TensorFlow installation (pip package or built from source):
Pip package
- TensorFlow library (version, if pip package or github SHA, if built from source):
2.11.0
### 2. Code
Provide code to help us reproduce your issues using one of the following options:
#### Option B: Paste your code here or provide a link to a custom end-to-end colab
`TF_PATH = "/data/lxp/mmpose/tf_model" `
`TFLITE_PATH = "/data/lxp/mmpose/mmpose.tflite"`
`converter = tf.lite.TFLiteConverter.from_saved_model(TF_PATH)`
`converter.optimizations = [tf.lite.Optimize.DEFAULT]`
`converter.representative_dataset = representative_data_gen`
`converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]`
`converter.target_spec.supported_types = [tf.int8] `
`converter.inference_input_type = tf.int8`
`converter.inference_input_type = tf.int8 # or tf.uint8`
`converter.inference_output_type = tf.int8 # or tf.uint8 `
`tf_lite_model = converter.convert()`
`with open(TFLITE_PATH, 'wb') as f:`
`f.write(tf_lite_model)`
### 3. Failure after conversion
If the conversion is successful, but I encounter segment error when I try to deploy tflite model.
Then, I found that error appeared while "AllocateTensors()"->"graph_.PrepareSubgraphs()"->"registration->prepare(context_, node)"
There, I printed the node id and registration->builtin_code.
![image](https://user-images.githubusercontent.com/66299911/222093485-4853f014-ba33-4241-9094-45edf074ba75.png)
After using netron, we can know the node 24 correspond to FullyConnected.
![H2T_QR%WE@$0$8OXO9J7~UT](https://user-images.githubusercontent.com/66299911/222094472-74de7d81-4851-49b3-85b8-2d90b16689a7.png)
![image](https://user-images.githubusercontent.com/66299911/222093548-626469a4-4fe7-4ae0-ba82-85cd63ebc616.png)
Also, go into the funtion "prepare(context_, node)" , the error is raised by the following code.
`TFLITE_DCHECK(filter->params.zero_point == 0);`
This code restricts the zeropoints of the weight in fully_connected-layer should always be zero.
![image](https://user-images.githubusercontent.com/66299911/222094095-1a8b2f69-2d29-4f91-bfa9-27bac9329559.png)
But mine is -10. What needs mentioning is that the weight in this fully_connected-layer is poduced by the upper transpose-layer.
I wonder why my zeropoint is not zero while I use tensorflow-Post-training quantization-Full integer quantization to get my quantization_weight and it's hard for me to find the configure to restricts the zeropoints. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59846/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59846/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59845 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59845/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59845/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59845/events | https://github.com/tensorflow/tensorflow/issues/59845 | 1,604,281,998 | I_kwDOArmXAs5fn2aO | 59,845 | one tflite model padding layer , the data is error(flatbuffers) | {
"login": "mengran1234",
"id": 87115287,
"node_id": "MDQ6VXNlcjg3MTE1Mjg3",
"avatar_url": "https://avatars.githubusercontent.com/u/87115287?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mengran1234",
"html_url": "https://github.com/mengran1234",
"followers_url": "https://api.github.com/users/mengran1234/followers",
"following_url": "https://api.github.com/users/mengran1234/following{/other_user}",
"gists_url": "https://api.github.com/users/mengran1234/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mengran1234/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mengran1234/subscriptions",
"organizations_url": "https://api.github.com/users/mengran1234/orgs",
"repos_url": "https://api.github.com/users/mengran1234/repos",
"events_url": "https://api.github.com/users/mengran1234/events{/privacy}",
"received_events_url": "https://api.github.com/users/mengran1234/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@mengran1234,\r\nThanks for opening the issue. In order to expedite the trouble-shooting process, could you please provide a minimal code snippet you are trying to execute. Thank you!\r\n",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59845\">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/59845\">No</a>\n"
] | 2023-03-01T05:38:56 | 2023-03-18T01:58:13 | 2023-03-18T01:58:11 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.10 or 2.11
### Custom Code
Yes
### OS Platform and Distribution
android
### Mobile device
android
### Python version
3.7
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
A bug happened!
I call tflite::FlatBufferModel::BuildFromFile(model_name.c_str());
then on first padding layer I print the pad data (paddings),and find the data is 0 0 0 0 8 0 8 0 ,
but using netron open it correct data is [
[
0,
0
],
[
8,
8
],
[
8,
8
],
[
0,
0
]
]
```
### Standalone code to reproduce the issue
```shell
this pad layer Connect three outputs later,it is one Transpose and two StridedSlice layers.
I guess it is flatbuffer bug
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59845/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59845/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59844 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59844/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59844/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59844/events | https://github.com/tensorflow/tensorflow/issues/59844 | 1,604,144,354 | I_kwDOArmXAs5fnUzi | 59,844 | A check fail can be triggered in tf.ragged.range | {
"login": "shijy16",
"id": 31403391,
"node_id": "MDQ6VXNlcjMxNDAzMzkx",
"avatar_url": "https://avatars.githubusercontent.com/u/31403391?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shijy16",
"html_url": "https://github.com/shijy16",
"followers_url": "https://api.github.com/users/shijy16/followers",
"following_url": "https://api.github.com/users/shijy16/following{/other_user}",
"gists_url": "https://api.github.com/users/shijy16/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shijy16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shijy16/subscriptions",
"organizations_url": "https://api.github.com/users/shijy16/orgs",
"repos_url": "https://api.github.com/users/shijy16/repos",
"events_url": "https://api.github.com/users/shijy16/events{/privacy}",
"received_events_url": "https://api.github.com/users/shijy16/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@gaikwadrahul8 \r\nI was able to reproduce the issue on Colab using TF 2.11 and tf-nightly. Please find the gist of [2.11](https://colab.research.google.com/gist/tiruk007/cc8ffbbf3cc69f51227cc4ae93b7c078/untitled149.ipynb) and [tf-nightly](https://colab.research.google.com/gist/tiruk007/739b3634108ad660e60f8769fe1d2284/untitled149-nightly.ipynb) for reference. \r\nThank you !",
"Hi, @shijy16 \r\n\r\nApologize for the delay and I was able to replicate the same issue on Google Colab with `tf-nightly `and `tensorflow==2.12.0rc0` and code is not executing completely successfully, Here is [gist-file](https://colab.research.google.com/gist/gaikwadrahul8/88dc21f81d4fbfe850ea8dfda20f56cb/-59844-test.ipynb) and session is getting crashed. It's giving warning `2023-03-03 15:03:16.216167: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -2147483648`, for your reference I have added screenshot below:\r\n\r\n![image](https://user-images.githubusercontent.com/115997457/222754403-150c6ba0-b01c-4ddf-ada8-6429b3d8ad0d.png)\r\n\r\nI have executed the same code multiple times on `Ubuntu 20.04` with `tf-nightly` and `tensorflow==2.12.0rc0` I have added detailed log below, It seems like we have to dig more into this issue and we'll update you soon, Thank you for noticing this issue. Thank you!\r\n\r\n```\r\n(tf-cpu-tf-nightly) gaikwadrahul@rahul-ubuntu-20-gpu:~$ python _59844_test.py \r\n2023-03-03 15:20:10.809221: 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-03-03 15:20:11.628435: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-03-03 15:20:12.447280: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:12.447673: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:12.592711: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\n<tf.RaggedTensor [[], [], [], [], [], [], [], [], [], [], []]>\r\n(tf-cpu-tf-nightly) gaikwadrahul@rahul-ubuntu-20-gpu:~$ python _59844_test.py \r\n2023-03-03 15:20:17.896998: 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-03-03 15:20:18.697086: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-03-03 15:20:19.442879: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:19.443243: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:19.453230: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\n2023-03-03 15:20:19.476306: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -2147483648\r\nAborted (core dumped)\r\n(tf-cpu-tf-nightly) gaikwadrahul@rahul-ubuntu-20-gpu:~$ python _59844_test.py \r\n2023-03-03 15:20:26.245838: 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-03-03 15:20:27.079848: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-03-03 15:20:27.877856: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:27.878182: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:27.888476: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\n2023-03-03 15:20:27.911686: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -2147483648\r\nAborted (core dumped)\r\n(tf-cpu-tf-nightly) gaikwadrahul@rahul-ubuntu-20-gpu:~$ python _59844_test.py \r\n2023-03-03 15:20:32.161218: 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-03-03 15:20:32.984919: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-03-03 15:20:33.728023: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:33.728350: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:33.738221: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\n2023-03-03 15:20:33.761200: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -2147483648\r\nAborted (core dumped)\r\n(tf-cpu-tf-nightly) gaikwadrahul@rahul-ubuntu-20-gpu:~$ python _59844_test.py \r\n2023-03-03 15:20:39.988125: 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-03-03 15:20:40.836736: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-03-03 15:20:41.593577: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:41.593877: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:41.603714: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\n<tf.RaggedTensor [[], [], [], [], [], [], [], [], [], [], []]>\r\n(tf-cpu-tf-nightly) gaikwadrahul@rahul-ubuntu-20-gpu:~$ python _59844_test.py \r\n2023-03-03 15:20:50.296064: 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-03-03 15:20:51.125175: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\r\n2023-03-03 15:20:51.897238: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:51.897710: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] 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-03-03 15:20:51.907990: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1956] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\r\nSkipping registering GPU devices...\r\n2023-03-03 15:20:51.931164: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -2147483648\r\nAborted (core dumped)\r\n\r\n```",
"Hi, @SuryanarayanaY \r\n\r\nCould you please look into this issue ? Thank you!",
"Hi @shijy16 ,\r\n\r\nThe issue got resolved now with tf-nightly(2.14.0-dev20230514) and now TF is successfully able to raise the intended Error.\r\nPlease refer to attached [gist](https://colab.research.google.com/gist/SuryanarayanaY/85f3d42c0ec2d25e26093ea3f2ae32c9/59844_tf-nightly-2-14.ipynb). \r\n\r\nPlease check and confirm and let us know if we can close the issue as it resolved now. \r\n\r\nThanks!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59844\">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/59844\">No</a>\n"
] | 2023-03-01T02:59:00 | 2023-05-30T01:59:08 | 2023-05-30T01:59:06 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
binary
### Tensorflow Version
tf 2.9 and 2.13.0-dev20230219
### 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
CUDA 11.5
### GPU model and memory
_No response_
### Current Behaviour?
```shell
The following code can trigger a check fail in `tf.ragged.range`. In some cases, it executed and exited normally, but sometimes it failed with a check fail. The large values in `limits` might be the cause of this bug.
```
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
with tf.device("CPU"):
Tsplits = tf.int32
starts = tf.random.uniform([], dtype=tf.float32, minval=-1024, maxval=1024)
limits = tf.random.uniform([11], dtype=tf.float32, minval=-18446744073709551615, maxval=18446744073709551615)
deltas = tf.random.uniform([], dtype=tf.float32, minval=-1024, maxval=1024)
res = tf.ragged.range(
starts=starts,
limits=limits,
deltas=deltas,
row_splits_dtype=tf.int32,
)
```
### Relevant log output
```shell
2023-03-01 10:51:07.788154: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-03-01 10:51:07.833699: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-01 10:51:08.584794: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-03-01 10:51:09.415873: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.194653: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.194691: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1635] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14061 MB memory: -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0
2023-03-01 10:51:10.215308: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.221055: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.223571: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.225320: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.228201: I tensorflow/core/common_runtime/local_device.cc:158] LocalDevice using CPU work thread pool: 0x55d03db40440, num_threads=48
2023-03-01 10:51:10.230234: F tensorflow/core/framework/tensor_shape.cc:201] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -2147483648
Aborted (core dumped)
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59844/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59844/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59843 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59843/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59843/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59843/events | https://github.com/tensorflow/tensorflow/pull/59843 | 1,604,125,439 | PR_kwDOArmXAs5K_KDZ | 59,843 | [DO NOT REVIEW] Introduce multiple streams execution in TensorFlow. | {
"login": "buptzyb",
"id": 38978109,
"node_id": "MDQ6VXNlcjM4OTc4MTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38978109?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/buptzyb",
"html_url": "https://github.com/buptzyb",
"followers_url": "https://api.github.com/users/buptzyb/followers",
"following_url": "https://api.github.com/users/buptzyb/following{/other_user}",
"gists_url": "https://api.github.com/users/buptzyb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/buptzyb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/buptzyb/subscriptions",
"organizations_url": "https://api.github.com/users/buptzyb/orgs",
"repos_url": "https://api.github.com/users/buptzyb/repos",
"events_url": "https://api.github.com/users/buptzyb/events{/privacy}",
"received_events_url": "https://api.github.com/users/buptzyb/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1173072136,
"node_id": "MDU6TGFiZWwxMTczMDcyMTM2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL",
"name": "size:XL",
"color": "adafea",
"default": false,
"description": "CL Change Size:Extra Large"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @buptzyb This PR is in draft, any update on this? Please. Thank you!",
"Hi @buptzyb This PR is in draft, any update on this? Please. Thank you!",
"> Hi @buptzyb This PR is in draft, any update on this? Please. Thank you!\r\n\r\nHi, after discussing with reviewers, the changes will be split into several PRs for merge, such as [#60322](https://github.com/tensorflow/tensorflow/pull/60322) and [#60323](https://github.com/tensorflow/tensorflow/pull/60323) so far. So this PR will work as a reference and will not be merged directly.",
"Hi @buptzyb This PR is in draft, any update on this? Please. Thank you!"
] | 2023-03-01T02:34:06 | 2023-10-25T09:24:31 | 2023-10-25T09:24:31 | CONTRIBUTOR | null | true | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59843",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59843",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59843.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59843.patch",
"merged_at": null
} | Multiple Stream TensorFlow is developed based on the official TensorFlow. It leverages the features of modern GPUs to accelerate deep learning training and inference. This Multi-Stream implementation has successfully helped several customers migrate their TF models to the GPU and go online.
For more details please visit [README_MultiStream.md](https://github.com/buptzyb/tensorflow/blob/multistream/README_MultiStream.md). | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59843/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59843/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59842 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59842/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59842/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59842/events | https://github.com/tensorflow/tensorflow/pull/59842 | 1,604,018,393 | PR_kwDOArmXAs5K-zJq | 59,842 | r2.12 cherry-pick: Merge pull request https://github.com/tensorflow/tensorflow/pull/59581 from Intel-tensorflow:security_fix_quantiz | {
"login": "venkat2469",
"id": 104534215,
"node_id": "U_kgDOBjsQxw",
"avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/venkat2469",
"html_url": "https://github.com/venkat2469",
"followers_url": "https://api.github.com/users/venkat2469/followers",
"following_url": "https://api.github.com/users/venkat2469/following{/other_user}",
"gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}",
"starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions",
"organizations_url": "https://api.github.com/users/venkat2469/orgs",
"repos_url": "https://api.github.com/users/venkat2469/repos",
"events_url": "https://api.github.com/users/venkat2469/events{/privacy}",
"received_events_url": "https://api.github.com/users/venkat2469/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-03-01T00:29:07 | 2023-03-02T21:02:16 | 2023-03-01T19:14:08 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59842",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59842",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59842.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59842.patch",
"merged_at": "2023-03-01T19:14:08"
} | [xla:gpu] Serialize autotuning on GPU devices
Merge pull request https://github.com/tensorflow/tensorflow/pull/59581 from Intel-tensorflow:security_fix_quantiz
| {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59842/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59842/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59841 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59841/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59841/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59841/events | https://github.com/tensorflow/tensorflow/issues/59841 | 1,603,966,315 | I_kwDOArmXAs5fmpVr | 59,841 | Numpy to tensor | {
"login": "WennPaper",
"id": 67032259,
"node_id": "MDQ6VXNlcjY3MDMyMjU5",
"avatar_url": "https://avatars.githubusercontent.com/u/67032259?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/WennPaper",
"html_url": "https://github.com/WennPaper",
"followers_url": "https://api.github.com/users/WennPaper/followers",
"following_url": "https://api.github.com/users/WennPaper/following{/other_user}",
"gists_url": "https://api.github.com/users/WennPaper/gists{/gist_id}",
"starred_url": "https://api.github.com/users/WennPaper/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WennPaper/subscriptions",
"organizations_url": "https://api.github.com/users/WennPaper/orgs",
"repos_url": "https://api.github.com/users/WennPaper/repos",
"events_url": "https://api.github.com/users/WennPaper/events{/privacy}",
"received_events_url": "https://api.github.com/users/WennPaper/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"
}
] | closed | false | {
"login": "synandi",
"id": 98147397,
"node_id": "U_kgDOBdmcRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/synandi",
"html_url": "https://github.com/synandi",
"followers_url": "https://api.github.com/users/synandi/followers",
"following_url": "https://api.github.com/users/synandi/following{/other_user}",
"gists_url": "https://api.github.com/users/synandi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/synandi/subscriptions",
"organizations_url": "https://api.github.com/users/synandi/orgs",
"repos_url": "https://api.github.com/users/synandi/repos",
"events_url": "https://api.github.com/users/synandi/events{/privacy}",
"received_events_url": "https://api.github.com/users/synandi/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "synandi",
"id": 98147397,
"node_id": "U_kgDOBdmcRQ",
"avatar_url": "https://avatars.githubusercontent.com/u/98147397?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/synandi",
"html_url": "https://github.com/synandi",
"followers_url": "https://api.github.com/users/synandi/followers",
"following_url": "https://api.github.com/users/synandi/following{/other_user}",
"gists_url": "https://api.github.com/users/synandi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/synandi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/synandi/subscriptions",
"organizations_url": "https://api.github.com/users/synandi/orgs",
"repos_url": "https://api.github.com/users/synandi/repos",
"events_url": "https://api.github.com/users/synandi/events{/privacy}",
"received_events_url": "https://api.github.com/users/synandi/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @WenTheProgrammer, \r\nIt seems like you havent filled the issue [template](https://github.com/tensorflow/tensorflow/issues/new/choose), please fill the template for better assistance.\r\n\r\nIt's possible that the issue is related to the difference in color channel ordering between OpenCV and TensorFlow. In OpenCV, the color channels are ordered as Blue-Green-Red (BGR), while in TensorFlow the color channels are ordered as Red-Green-Blue (RGB). This means that if your model was trained on RGB images, it might not perform well when given input in BGR format. \r\nYou can try reversing the order of the color channels in your numpy array before feeding it to your model with `cv2.cvtColor(image, cv2.COLOR_BGR2RGB)`. Modify your code like below and let us know if the issue still persists.\r\n```\r\narray = cv2.imread('image.jpg')\r\narray = cv2.cvtColor(array, cv2.COLOR_BGR2RGB)\r\nimage = tf.convert_to_tensor(array/255, dtype=tf.float32)\r\nimage = tf.image.resize(images=image, size=[imsize, imsize])\r\nimage = tf.keras.applications.resnet50.preprocess_input(image)\r\npredictions = model.predict(np.expand_dims(image, axis=0))\r\n```\r\nThank you!",
"Hi @synandi,\r\n\r\nYour suggestion worked! However, I needed to slightly modify the code by not dividing the array by 255 when feeding it into the `tf.convert_to_tensor` function:\r\n```\r\narray = cv2.imread('image.jpg')\r\narray = cv2.cvtColor(array, cv2.COLOR_BGR2RGB)\r\nimage = tf.convert_to_tensor(array, dtype=tf.float32)\r\nimage = tf.image.resize(images=image, size=[imsize, imsize])\r\nimage = tf.keras.applications.resnet50.preprocess_input(image)\r\npredictions = model.predict(np.expand_dims(image, axis=0))\r\n```\r\nAnother observation that I had was, I obtained nearly yet not fully identical prediction results when reading the same image using `tf.io.read_file` and `cv2.imread` respectively:\r\n\r\n![1](https://user-images.githubusercontent.com/67032259/222210689-3d2d48bf-03cd-4247-a653-2f43fe7f5163.png) ![2](https://user-images.githubusercontent.com/67032259/222210706-a76b9b20-f20e-4929-a0b0-bee762209246.png)\r\n\r\nDo you know what might be the reason for that?\r\n\r\nThank you!",
"*****\r\nThis might help. Pls tell you reviews @WenTheProgrammer \r\n****\r\n\r\nThe difference in prediction results you are seeing could be due to the fact that when you read the image file using tf.io.read_file and tf.image.decode_image, the image is decoded and resized using the default settings, whereas when you directly load the image into memory using cv2.imread and then resize it using tf.image.resize, you are specifying the size explicitly. This can result in differences in the pixel values of the images, which can affect the prediction results.\r\nTo ensure that the image data you are using to make predictions is consistent, you should try to use the same image loading and preprocessing steps for both cases. You can achieve this by converting the numpy array to a tensor using tf.convert_to_tensor and then following the same image processing steps as before.\r\n\r\n#Code\r\nimport cv2\r\n\r\n# Load image into memory as a numpy array\r\narray = cv2.imread('image.jpg')\r\n\r\n# Convert numpy array to tensor and normalize the pixel values\r\nimage = tf.convert_to_tensor(array, dtype=tf.float32) / 255\r\n\r\n# Resize the image to the desired size\r\nimage = tf.image.resize(images=image, size=[imsize, imsize])\r\n\r\n# Apply the same preprocessing steps as before\r\nimage = tf.keras.applications.resnet50.preprocess_input(image)\r\n\r\n# Make the prediction\r\npredictions = model.predict(np.expand_dims(image, axis=0))\r\n",
"Hi @NiharJani2002 \r\n\r\nThe only difference between your suggestion and my code is that you divided the image by 255 after converting the numpy array into a tensor: `image = tf.convert_to_tensor(array, dtype=tf.float32) / 255`. I tested this method, and obtained prediction results that are way off from what I obtained using `tf.convert_to_tensor`. It seems like images should not be divided by 255 after tensor conversion.",
"\r\n\r\n\r\n> Another observation that I had was, I obtained nearly yet not fully identical prediction results when reading the same image using `tf.io.read_file` and `cv2.imread` respectively:\r\n> \r\n> ![1](https://user-images.githubusercontent.com/67032259/222210689-3d2d48bf-03cd-4247-a653-2f43fe7f5163.png) ![2](https://user-images.githubusercontent.com/67032259/222210706-a76b9b20-f20e-4929-a0b0-bee762209246.png)\r\n> \r\n> Do you know what might be the reason for that?\r\n> \r\n> Thank you!\r\n\r\n@WenTheProgrammer, The two images don't seem to vary in any way. However, one possibility is that the two libraries use different algorithms for decoding the image, which can result in small differences in the pixel values. If the differences are very small and do not significantly affect the performance of your model, then it may not be a cause for concern. Thank 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/59841\">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/59841\">No</a>\n"
] | 2023-02-28T23:22:38 | 2023-03-04T21:01:39 | 2023-03-04T21:01:37 | NONE | null | null | null | I apologize for posting a very simple question here as I could not solve the issue myself or find an answer elsewhere.
I was trying to make a prediction using a model and a 3D array with 3 channels as inputs. When this 3D array was saved as an image file, I was able to make a proper prediction using my model:
`image = tf.io.read_file('image.jpg')`
`image = tf.image.decode_image(image, channels=3)`
`image = tf.image.resize(images=image, size=[imsize, imsize])`
`image = tf.keras.applications.resnet50.preprocess_input(image)`
`predictions = model.predict(np.expand_dims(image, axis=0))`
However, when this 3D array was readily available in memory as a numpy array in uint8 format, and I tried to directly use this array to make a prediction, I get a different prediction result. I used `cv2.imread` to simulate the array in memory:
`array = cv2.imread('image.jpg')`
`image = tf.convert_to_tensor(array/255, dtype=tf.float32) `
`image = tf.image.resize(images=image, size=[imsize, imsize])`
`image = tf.keras.applications.resnet50.preprocess_input(image)`
`predictions = model.predict(np.expand_dims(image, axis=0))`
Any help is greatly appreciated! | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59841/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59841/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59840 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59840/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59840/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59840/events | https://github.com/tensorflow/tensorflow/pull/59840 | 1,603,956,668 | PR_kwDOArmXAs5K-mVr | 59,840 | r2.12 cherry-pick: 0ff9614d8a5 "Update curl to 7.88.0" | {
"login": "tensorflow-jenkins",
"id": 16359713,
"node_id": "MDQ6VXNlcjE2MzU5NzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tensorflow-jenkins",
"html_url": "https://github.com/tensorflow-jenkins",
"followers_url": "https://api.github.com/users/tensorflow-jenkins/followers",
"following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions",
"organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs",
"repos_url": "https://api.github.com/users/tensorflow-jenkins/repos",
"events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}",
"received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-02-28T23:11:16 | 2023-03-01T15:47:57 | 2023-03-01T01:23:45 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59840",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59840",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59840.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59840.patch",
"merged_at": "2023-03-01T01:23:45"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/0ff9614 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59840/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59840/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59839 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59839/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59839/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59839/events | https://github.com/tensorflow/tensorflow/pull/59839 | 1,603,944,767 | PR_kwDOArmXAs5K-jv4 | 59,839 | r2.12 cherry-pick: c7c3dbe"Prevent integer overflow in tensor byte size computation". | {
"login": "venkat2469",
"id": 104534215,
"node_id": "U_kgDOBjsQxw",
"avatar_url": "https://avatars.githubusercontent.com/u/104534215?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/venkat2469",
"html_url": "https://github.com/venkat2469",
"followers_url": "https://api.github.com/users/venkat2469/followers",
"following_url": "https://api.github.com/users/venkat2469/following{/other_user}",
"gists_url": "https://api.github.com/users/venkat2469/gists{/gist_id}",
"starred_url": "https://api.github.com/users/venkat2469/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/venkat2469/subscriptions",
"organizations_url": "https://api.github.com/users/venkat2469/orgs",
"repos_url": "https://api.github.com/users/venkat2469/repos",
"events_url": "https://api.github.com/users/venkat2469/events{/privacy}",
"received_events_url": "https://api.github.com/users/venkat2469/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-02-28T22:59:54 | 2023-02-28T23:57:07 | 2023-02-28T23:54:08 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59839",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59839",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59839.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59839.patch",
"merged_at": null
} | Prevent integer overflow in tensor byte size computation. https://github.com/tensorflow/tensorflow/commit/c7c3dbe1ca35cbffe0749181734131875863cd82. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59839/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59839/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59838 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59838/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59838/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59838/events | https://github.com/tensorflow/tensorflow/issues/59838 | 1,603,932,265 | I_kwDOArmXAs5fmhBp | 59,838 | mean_absolute_error outputs weird results when input is nan on GPU | {
"login": "trickiwoo",
"id": 121965696,
"node_id": "U_kgDOB0UMgA",
"avatar_url": "https://avatars.githubusercontent.com/u/121965696?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/trickiwoo",
"html_url": "https://github.com/trickiwoo",
"followers_url": "https://api.github.com/users/trickiwoo/followers",
"following_url": "https://api.github.com/users/trickiwoo/following{/other_user}",
"gists_url": "https://api.github.com/users/trickiwoo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/trickiwoo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/trickiwoo/subscriptions",
"organizations_url": "https://api.github.com/users/trickiwoo/orgs",
"repos_url": "https://api.github.com/users/trickiwoo/repos",
"events_url": "https://api.github.com/users/trickiwoo/events{/privacy}",
"received_events_url": "https://api.github.com/users/trickiwoo/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 1097547538,
"node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu",
"name": "comp:gpu",
"color": "0052cc",
"default": false,
"description": "GPU related issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "SuryanarayanaY",
"id": 116063290,
"node_id": "U_kgDOBur8Og",
"avatar_url": "https://avatars.githubusercontent.com/u/116063290?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SuryanarayanaY",
"html_url": "https://github.com/SuryanarayanaY",
"followers_url": "https://api.github.com/users/SuryanarayanaY/followers",
"following_url": "https://api.github.com/users/SuryanarayanaY/following{/other_user}",
"gists_url": "https://api.github.com/users/SuryanarayanaY/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SuryanarayanaY/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SuryanarayanaY/subscriptions",
"organizations_url": "https://api.github.com/users/SuryanarayanaY/orgs",
"repos_url": "https://api.github.com/users/SuryanarayanaY/repos",
"events_url": "https://api.github.com/users/SuryanarayanaY/events{/privacy}",
"received_events_url": "https://api.github.com/users/SuryanarayanaY/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @trickiwoo. Thanks for reporting this issue.\r\n\r\nI was able to reproduce this in 2.11 and TF Nightly 2.13.0-dev20230301. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/8cc469edd8c5b0fc13783e2a8bcefabb/59838.ipynb#scrollTo=3Wms-TQ7ExEI).\r\n\r\n@SuryanarayanaY Could you please look into this. Thank you.",
"Hi @trickiwoo , Thanks for your time for reporting this issue.\r\n\r\nBasically the issue is coming due to tf.cast which is called by this API. With CPU `tf.cast(np.nan, tf.int32)` returns the min value of `tf.int32` i.e `-2147483648`. But with GPU `tf.cast(np.nan, tf.int32)` casting to `'0'`. This may be due to inconsistent behaviour with `nan` which is an undefined value. The result is coming from `pywrap_tfe.TFE_Py_FastPathExecute`. This type of behaviour expected with garbage data.\r\n\r\n",
"Thanks for getting back. It would be great if there could be some warnings or exceptions here for the nan inputs",
"Casting `NaN` to int is undefined behavior, since it is not representable in the destination type. We do not guarantee any particular results in this case, nor consistency between CPU and GPU - essentially you are giving it garbage data, so you will get garbage data out. Casts are used everywhere, and it's essential they operate quickly, so we do not do any bounds checking on casts - if there's a chance the input will be out-of-range, you need to do a saturated case or explicit edge-case handling yourself.",
"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/59838\">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/59838\">No</a>\n"
] | 2023-02-28T22:46:56 | 2023-03-06T16:56:22 | 2023-03-06T16:56:18 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.13.0-dev20230222
### 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
8.2.4
### GPU model and memory
_No response_
### Current Behaviour?
```shell
mean_absolute_error outputs weird results when input is nan on GPU
```
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
import numpy as np
labels = [np.nan]
predictions = [1]
mae = tf.keras.metrics.mean_absolute_error(labels, predictions)
print(mae)
```
### Relevant log output
```shell
tf.Tensor(1, shape=(), dtype=int32)
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59838/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59838/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59837 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59837/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59837/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59837/events | https://github.com/tensorflow/tensorflow/pull/59837 | 1,603,900,119 | PR_kwDOArmXAs5K-Z-r | 59,837 | [INTEL oneDNN][Bug Fix] Fix an AvgPoolGrad unit test failure caused by a newly added test | {
"login": "gzmkl",
"id": 29215195,
"node_id": "MDQ6VXNlcjI5MjE1MTk1",
"avatar_url": "https://avatars.githubusercontent.com/u/29215195?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gzmkl",
"html_url": "https://github.com/gzmkl",
"followers_url": "https://api.github.com/users/gzmkl/followers",
"following_url": "https://api.github.com/users/gzmkl/following{/other_user}",
"gists_url": "https://api.github.com/users/gzmkl/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gzmkl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gzmkl/subscriptions",
"organizations_url": "https://api.github.com/users/gzmkl/orgs",
"repos_url": "https://api.github.com/users/gzmkl/repos",
"events_url": "https://api.github.com/users/gzmkl/events{/privacy}",
"received_events_url": "https://api.github.com/users/gzmkl/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1104829434,
"node_id": "MDU6TGFiZWwxMTA0ODI5NDM0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:mkl",
"name": "comp:mkl",
"color": "0052cc",
"default": false,
"description": "MKL related issues"
},
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
}
] | closed | false | {
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Please see the comment https://github.com/tensorflow/tensorflow/issues/59773#issuecomment-1443459494 and adjust this PR so that it removes the line mentioned there. That will re-enable the running of the test in question on the AARCH64 github actions and allow confirmation that your fix addresses the issue.",
"Just made the code change to re-enable the unit case execution on AARCH64.\r\nPlease review!",
"I am not sure if my recent two commits (unblock 2 unit tests) caused the \"ARM CI / build (3.10) (pull_request)\" failure.\r\n\r\nI could not find much useful info from \"Details\"",
"@gzmkl The failure was due to an unrelated pre-existing issue that has since been addressed.",
"@elfringham Thank you for the input. I will conv test into deny list and ask our team to address it in near future.\r\n",
" @elfringham Regarding to conv_ops_test, I did follow-up and found that related failed test case (testConv2DGroupFwd) passed on all Intel CPUs in both GRAPH and EAGER modes. As we do not work on AARCH64, to fix the issue we can only provide support. THANKS!\r\n\r\n",
"Hi @penpornk Can you please review this PR ? Thank you!",
"@penpornk Hi, I did not notice that you have reviewed and approved the original PR, but did just commit another code change by adding another sanity check to address more UT failures related to AvgPoolGrad op:\r\n\r\npython/kernel_tests/nn_ops/pooling_ops_test.py\r\ndef testAvgPoolGradInvalidInputShapeRaiseError(self):\r\npython/kernel_tests/nn_ops/pooling_ops_3d_test.py\r\n\r\nPlease review the delta change (6 new lines of code).\r\n\r\nThanks a lot\r\n ",
"@penpornk The new delta changes are in Eigen implementation already. We are just doing the same for oneDNN AvgPoolGrad op."
] | 2023-02-28T22:18:09 | 2023-04-12T14:42:05 | 2023-04-12T14:42:05 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59837",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59837",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59837.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59837.patch",
"merged_at": "2023-04-12T14:42:05"
} | Recent commit (merged around 2/16/2023)
https://github.com/tensorflow/tensorflow/commit/623a2f128b7e40ea990c82f56add4810244877d6
added error checking to AvgPoolGrad kernel (core/kernels/avgpooling_op.cc)
with a newly added test case in pooling_ops_test.py
This PR does the exact same for oneDNN AvgPoolGrad kernel, to address the unit test case failure which is triggered by the above commit (when oneDNN is enabled).
This PR also re-enables to following 2 unit tests for AARCH64:
//tensorflow/python/kernel_tests/nn_ops:conv_ops_test \
//tensorflow/python/kernel_tests/nn_ops:pooling_ops_test \ | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59837/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59837/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59836 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59836/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59836/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59836/events | https://github.com/tensorflow/tensorflow/pull/59836 | 1,603,762,970 | PR_kwDOArmXAs5K98Uf | 59,836 | r2.12 cherry-pick: 30bf24f83ee "Fix bug where AAR file wasn't including headers from lite/core/c/" | {
"login": "tensorflow-jenkins",
"id": 16359713,
"node_id": "MDQ6VXNlcjE2MzU5NzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tensorflow-jenkins",
"html_url": "https://github.com/tensorflow-jenkins",
"followers_url": "https://api.github.com/users/tensorflow-jenkins/followers",
"following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions",
"organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs",
"repos_url": "https://api.github.com/users/tensorflow-jenkins/repos",
"events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}",
"received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-02-28T20:29:06 | 2023-03-01T15:47:31 | 2023-03-01T01:24:17 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59836",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59836",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59836.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59836.patch",
"merged_at": "2023-03-01T01:24:17"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/30bf24f | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59836/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59836/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59835 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59835/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59835/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59835/events | https://github.com/tensorflow/tensorflow/pull/59835 | 1,603,740,150 | PR_kwDOArmXAs5K93gP | 59,835 | r2.12 cherry-pick: f6db67b1f54 "Fix segmentation fault when running with VLOG level >= 1. Ensure `options.graph` isn't null before dereferencing it." | {
"login": "tensorflow-jenkins",
"id": 16359713,
"node_id": "MDQ6VXNlcjE2MzU5NzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tensorflow-jenkins",
"html_url": "https://github.com/tensorflow-jenkins",
"followers_url": "https://api.github.com/users/tensorflow-jenkins/followers",
"following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions",
"organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs",
"repos_url": "https://api.github.com/users/tensorflow-jenkins/repos",
"events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}",
"received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-02-28T20:12:57 | 2023-03-01T15:47:34 | 2023-03-01T01:24:42 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59835",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59835",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59835.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59835.patch",
"merged_at": "2023-03-01T01:24:41"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/f6db67b | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59835/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59835/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59834 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59834/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59834/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59834/events | https://github.com/tensorflow/tensorflow/pull/59834 | 1,603,699,474 | PR_kwDOArmXAs5K9uti | 59,834 | r2.12 cherry-pick: 478ea54bcf3 "Replace assert with eigen_assert." | {
"login": "tensorflow-jenkins",
"id": 16359713,
"node_id": "MDQ6VXNlcjE2MzU5NzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/16359713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tensorflow-jenkins",
"html_url": "https://github.com/tensorflow-jenkins",
"followers_url": "https://api.github.com/users/tensorflow-jenkins/followers",
"following_url": "https://api.github.com/users/tensorflow-jenkins/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorflow-jenkins/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorflow-jenkins/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorflow-jenkins/subscriptions",
"organizations_url": "https://api.github.com/users/tensorflow-jenkins/orgs",
"repos_url": "https://api.github.com/users/tensorflow-jenkins/repos",
"events_url": "https://api.github.com/users/tensorflow-jenkins/events{/privacy}",
"received_events_url": "https://api.github.com/users/tensorflow-jenkins/received_events",
"type": "User",
"site_admin": false
} | [] | closed | false | null | [] | null | [] | 2023-02-28T19:44:03 | 2023-03-06T22:02:53 | 2023-03-01T01:24:59 | COLLABORATOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59834",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59834",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59834.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59834.patch",
"merged_at": "2023-03-01T01:24:59"
} | Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/478ea54 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59834/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59834/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59833 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59833/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59833/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59833/events | https://github.com/tensorflow/tensorflow/issues/59833 | 1,602,835,454 | I_kwDOArmXAs5fiVP- | 59,833 | Centernet TFLite for multiple keypoint tasks crashes, but only on specific images | {
"login": "biantsh",
"id": 94078217,
"node_id": "U_kgDOBZuFCQ",
"avatar_url": "https://avatars.githubusercontent.com/u/94078217?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/biantsh",
"html_url": "https://github.com/biantsh",
"followers_url": "https://api.github.com/users/biantsh/followers",
"following_url": "https://api.github.com/users/biantsh/following{/other_user}",
"gists_url": "https://api.github.com/users/biantsh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/biantsh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/biantsh/subscriptions",
"organizations_url": "https://api.github.com/users/biantsh/orgs",
"repos_url": "https://api.github.com/users/biantsh/repos",
"events_url": "https://api.github.com/users/biantsh/events{/privacy}",
"received_events_url": "https://api.github.com/users/biantsh/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1661751498,
"node_id": "MDU6TGFiZWwxNjYxNzUxNDk4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteConverter",
"name": "TFLiteConverter",
"color": "bfdadc",
"default": false,
"description": "For issues related to TFLite converter"
},
{
"id": 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": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | open | false | {
"login": "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": "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 | [
"@biantsh Thanks for reporting this issue.\r\n\r\nI was able to reproduce this issue on TF 2.13 and TF Nightly 2.15.0-dev20230824. Please find the gist of 2.13 [here](https://colab.research.google.com/gist/pjpratik/ecb71c98424c0e3ed6f67fadbcd38638/59833.ipynb) and nightly [here](https://colab.research.google.com/gist/pjpratik/b0214fce68068616621016f371b27f00/59833.ipynb).\r\n\r\n@sachinprasadhs Could you please look into this? Thanks.",
"Hi @biantsh \r\n\r\nThe link to the models seems to be broken. Could you please provide the access to the models and data if possible?\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.",
"Hey @pjpratik, apologies for the oversight.\r\n\r\nI've updated the links and they should be working now. \r\n\r\nThank you!"
] | 2023-02-28T11:10:10 | 2023-08-25T06:48:44 | null | NONE | null | null | null | ### 1. System information
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04):**
Linux Ubuntu 20.04
- **TensorFlow installation (pip package or built from source):**
Pip package
- **TensorFlow library (version, if pip package or github SHA, if built from source):**
2.11.0
### 2. Code
Drive link to the model, including checkpoints, SavedModel and TFLite model: https://drive.google.com/drive/folders/1E0Ris0mfS4s5iWsLcqIoDK03dQO7nJ7T?usp=sharing
Drive link to a working image and a non-working (crashing) image: https://drive.google.com/drive/folders/1U0F-j8ZYYABRtbXm8hyWexP3gna5_ln9?usp=sharing
To convert the model, I first ran the `export_tflite_graph_tf2.py` script ([GitHub link](https://github.com/tensorflow/models/blob/master/research/object_detection/export_tflite_graph_tf2.py)) with the following command:
```
python3 export_tflite_graph_tf2.py \
--pipeline_config_path pipeline.config \
--trained_checkpoint_dir checkpoint/ \
--output_directory . \
--keypoint_label_map_path label_map.pbtxt
--centernet_include_keypoints true
```
Then, I converted the generated `saved_model` to TFLite using the `tflite_convert.py` script ([GitHub link](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/python/tflite_convert.py)) with the following command:
```
tflite_convert --saved_model_dir saved_model --output_file model.tflite
```
This successfully generates a `model.tflite` file. To run it, I'm using the following reference code (replacing the `model_path` and `image_path` variables with the correct paths):
```
import cv2 as cv
import numpy as np
import tensorflow as tf
model_path = '---'
image_path = '---'
interpreter = tf.lite.Interpreter(model_path)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
input_shape = input_details[0]['shape']
input_dtype = input_details[0]['dtype']
input_index = input_details[0]['index']
# Load and preprocess image
image = cv.imread(image_path)
image = cv.cvtColor(image, cv.COLOR_BGR2RGB)
image = cv.resize(image, input_shape[2:0:-1])
image = np.expand_dims(image, 0)
image = image.astype(input_dtype)
# Inference
interpreter.set_tensor(input_index, image)
interpreter.invoke()
```
### 3. Failure after conversion
Running the code with the image named `working.jpg` produces the following logs, indicating that there is no error:
```
2023-02-28 11:23:15.406260: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-28 11:23:16.388488: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/biant/anaconda3/envs/test/lib/python3.10/site-packages/cv2/../../lib64::/home/biant/anaconda3/envs/solabml/lib/:/home/biant/anaconda3/envs/test/lib/
2023-02-28 11:23:16.388599: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/biant/anaconda3/envs/test/lib/python3.10/site-packages/cv2/../../lib64::/home/biant/anaconda3/envs/solabml/lib/:/home/biant/anaconda3/envs/test/lib/
2023-02-28 11:23:16.388615: 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.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
```
Running the code with the image named `not_working.jpg` produces the following logs and error:
```
2023-02-28 11:24:18.121298: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-28 11:24:19.110612: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/biant/anaconda3/envs/test/lib/python3.10/site-packages/cv2/../../lib64::/home/biant/anaconda3/envs/solabml/lib/:/home/biant/anaconda3/envs/test/lib/
2023-02-28 11:24:19.110720: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/biant/anaconda3/envs/test/lib/python3.10/site-packages/cv2/../../lib64::/home/biant/anaconda3/envs/solabml/lib/:/home/biant/anaconda3/envs/test/lib/
2023-02-28 11:24:19.110735: 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.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Traceback (most recent call last):
File "/home/biant/inference.py", line 25, in <module>
interpreter.invoke()
File "/home/biant/anaconda3/envs/test/lib/python3.10/site-packages/tensorflow/lite/python/interpreter.py", line 917, in invoke
self._interpreter.Invoke()
RuntimeError: tensorflow/lite/kernels/unpack.cc:43 NumElements(input) > 0 was not true.Node number 297 (UNPACK) failed to prepare.
```
### 5. (optional) Any other info / logs
1. There isn't anything special about these two example images, they are from the validation set of Coco-2017 (the training set was used for training the model). The same results can be achieved by trying other random images.
2. On the working image, the detections can be printed and visualized, and the keypoints for both the 'person' and 'face' categories are detected correctly. This suggests that the TFLite model isn't *incapable* of predicting keypoints for two different categories.
3. Converting the checkpoints to a SavedModel using the script `exporter_main_v2.py` ([GitHub link](https://github.com/tensorflow/models/blob/master/research/object_detection/exporter_main_v2.py)) results in a model that doesn't crash with any images. This indicates that the issue is only related to the TFLite model.
3.1 - When observing the images that *don't* crash the TFLite model, it seems like in all cases at least one category 'person' and one category 'face' is predicted (out of the 10 detections that the model outputs).
3.2 - On the images that *do* crash the TFLite model, running them through the SavedModel version reveals that in almost all cases the detections consist of either all 'persons' or all 'faces'. Is it possible that the TFLite model crashes when it only predicts one of the categories?
3.3 - There were a few exceptions to point 3.2, but they were rare enough that the exceptions might just be due to the slight differences between the SavedModel and TFLite model.
**Edit:** As expected, increasing `--max_detections` during model conversion reduces the likelihood that the model will crash. For example, after increasing the number of detections from 10 to 100, only ~5% of the previously offending images are still causing a crash. Could this be due to the fact that when there are more detections outputted, the chance that both classes are detected increases? | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59833/reactions",
"total_count": 5,
"+1": 5,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59833/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59832 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59832/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59832/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59832/events | https://github.com/tensorflow/tensorflow/pull/59832 | 1,602,782,155 | PR_kwDOArmXAs5K6mB4 | 59,832 | [NVIDIA XLA:GPU] Fused MHA - Infrastructure + BMM-BMM fusion | {
"login": "AyanmoI",
"id": 42984676,
"node_id": "MDQ6VXNlcjQyOTg0Njc2",
"avatar_url": "https://avatars.githubusercontent.com/u/42984676?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AyanmoI",
"html_url": "https://github.com/AyanmoI",
"followers_url": "https://api.github.com/users/AyanmoI/followers",
"following_url": "https://api.github.com/users/AyanmoI/following{/other_user}",
"gists_url": "https://api.github.com/users/AyanmoI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AyanmoI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AyanmoI/subscriptions",
"organizations_url": "https://api.github.com/users/AyanmoI/orgs",
"repos_url": "https://api.github.com/users/AyanmoI/repos",
"events_url": "https://api.github.com/users/AyanmoI/events{/privacy}",
"received_events_url": "https://api.github.com/users/AyanmoI/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1173072136,
"node_id": "MDU6TGFiZWwxMTczMDcyMTM2",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XL",
"name": "size:XL",
"color": "adafea",
"default": false,
"description": "CL Change Size:Extra Large"
}
] | closed | false | {
"login": "cheshire",
"id": 348959,
"node_id": "MDQ6VXNlcjM0ODk1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheshire",
"html_url": "https://github.com/cheshire",
"followers_url": "https://api.github.com/users/cheshire/followers",
"following_url": "https://api.github.com/users/cheshire/following{/other_user}",
"gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cheshire/subscriptions",
"organizations_url": "https://api.github.com/users/cheshire/orgs",
"repos_url": "https://api.github.com/users/cheshire/repos",
"events_url": "https://api.github.com/users/cheshire/events{/privacy}",
"received_events_url": "https://api.github.com/users/cheshire/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "cheshire",
"id": 348959,
"node_id": "MDQ6VXNlcjM0ODk1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheshire",
"html_url": "https://github.com/cheshire",
"followers_url": "https://api.github.com/users/cheshire/followers",
"following_url": "https://api.github.com/users/cheshire/following{/other_user}",
"gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cheshire/subscriptions",
"organizations_url": "https://api.github.com/users/cheshire/orgs",
"repos_url": "https://api.github.com/users/cheshire/repos",
"events_url": "https://api.github.com/users/cheshire/events{/privacy}",
"received_events_url": "https://api.github.com/users/cheshire/received_events",
"type": "User",
"site_admin": false
},
{
"login": "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": "chsigg",
"id": 7523982,
"node_id": "MDQ6VXNlcjc1MjM5ODI=",
"avatar_url": "https://avatars.githubusercontent.com/u/7523982?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chsigg",
"html_url": "https://github.com/chsigg",
"followers_url": "https://api.github.com/users/chsigg/followers",
"following_url": "https://api.github.com/users/chsigg/following{/other_user}",
"gists_url": "https://api.github.com/users/chsigg/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chsigg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chsigg/subscriptions",
"organizations_url": "https://api.github.com/users/chsigg/orgs",
"repos_url": "https://api.github.com/users/chsigg/repos",
"events_url": "https://api.github.com/users/chsigg/events{/privacy}",
"received_events_url": "https://api.github.com/users/chsigg/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gcforster",
"id": 108087815,
"node_id": "U_kgDOBnFKBw",
"avatar_url": "https://avatars.githubusercontent.com/u/108087815?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gcforster",
"html_url": "https://github.com/gcforster",
"followers_url": "https://api.github.com/users/gcforster/followers",
"following_url": "https://api.github.com/users/gcforster/following{/other_user}",
"gists_url": "https://api.github.com/users/gcforster/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gcforster/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gcforster/subscriptions",
"organizations_url": "https://api.github.com/users/gcforster/orgs",
"repos_url": "https://api.github.com/users/gcforster/repos",
"events_url": "https://api.github.com/users/gcforster/events{/privacy}",
"received_events_url": "https://api.github.com/users/gcforster/received_events",
"type": "User",
"site_admin": false
},
{
"login": "xla-rotation",
"id": 116104012,
"node_id": "U_kgDOBuubTA",
"avatar_url": "https://avatars.githubusercontent.com/u/116104012?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xla-rotation",
"html_url": "https://github.com/xla-rotation",
"followers_url": "https://api.github.com/users/xla-rotation/followers",
"following_url": "https://api.github.com/users/xla-rotation/following{/other_user}",
"gists_url": "https://api.github.com/users/xla-rotation/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xla-rotation/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xla-rotation/subscriptions",
"organizations_url": "https://api.github.com/users/xla-rotation/orgs",
"repos_url": "https://api.github.com/users/xla-rotation/repos",
"events_url": "https://api.github.com/users/xla-rotation/events{/privacy}",
"received_events_url": "https://api.github.com/users/xla-rotation/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@AyanmoI Can you please resolve conflicts? Thank you!",
"> @AyanmoI Can you please resolve conflicts? Thank you!\r\n\r\nRebased and resolved conflicts.",
"@AyanmoI Can you please resolve conflicts? Thank you!",
"This will be spilt into 2 PRs, one of which is https://github.com/tensorflow/tensorflow/pull/60047. Closing this one."
] | 2023-02-28T10:34:58 | 2023-03-21T21:27:50 | 2023-03-21T21:27:44 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59832",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59832",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59832.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59832.patch",
"merged_at": null
} | cuDNN currently supports and the rewriter matches the following patterns for Multi-headed attention:
BMM1 - BMM2
BMM1 - Scale - Bias - Mask - Softmax - BMM2
BMM1 - Scale - Bias - Mask - Softmax - Dropout - BMM2
BMM1 - Scale - Mask - Softmax - BMM2
BMM1 - Scale - Mask - Softmax - Dropout - BMM2
BMM1 - Softmax - Dropout - BMM2
The following pattern is matched here:
`Output = BMM2(BMM1(Q,K), V)`
and the infrastructure to support the other patterns | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59832/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59832/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59831 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59831/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59831/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59831/events | https://github.com/tensorflow/tensorflow/pull/59831 | 1,602,717,552 | PR_kwDOArmXAs5K6X0L | 59,831 | [ROCM] Fix xla_call_module_test | {
"login": "i-chaochen",
"id": 913790,
"node_id": "MDQ6VXNlcjkxMzc5MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/913790?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/i-chaochen",
"html_url": "https://github.com/i-chaochen",
"followers_url": "https://api.github.com/users/i-chaochen/followers",
"following_url": "https://api.github.com/users/i-chaochen/following{/other_user}",
"gists_url": "https://api.github.com/users/i-chaochen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/i-chaochen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/i-chaochen/subscriptions",
"organizations_url": "https://api.github.com/users/i-chaochen/orgs",
"repos_url": "https://api.github.com/users/i-chaochen/repos",
"events_url": "https://api.github.com/users/i-chaochen/events{/privacy}",
"received_events_url": "https://api.github.com/users/i-chaochen/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1097547538,
"node_id": "MDU6TGFiZWwxMDk3NTQ3NTM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu",
"name": "comp:gpu",
"color": "0052cc",
"default": false,
"description": "GPU related issues"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @cheshire Can you please review this PR ? Thank you!",
"@i-chaochen can you address merge conflicts?",
"> @i-chaochen can you address merge conflicts?\r\n\r\nThanks @reedwm for the notice, it's done!",
"Hi @reedwm Can you please review this PR ? Thank you!"
] | 2023-02-28T10:00:03 | 2023-06-07T07:55:13 | 2023-06-07T07:55:13 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59831",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59831",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59831.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59831.patch",
"merged_at": "2023-06-07T07:55:12"
} | This PR has added ROCm for xla_call_module_test.
/cc @cheshire | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59831/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59831/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59830 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59830/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59830/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59830/events | https://github.com/tensorflow/tensorflow/issues/59830 | 1,602,599,248 | I_kwDOArmXAs5fhblQ | 59,830 | tf.math.reduce_std on ragged tensors doesn't work properly | {
"login": "CLRW97",
"id": 52445253,
"node_id": "MDQ6VXNlcjUyNDQ1MjUz",
"avatar_url": "https://avatars.githubusercontent.com/u/52445253?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/CLRW97",
"html_url": "https://github.com/CLRW97",
"followers_url": "https://api.github.com/users/CLRW97/followers",
"following_url": "https://api.github.com/users/CLRW97/following{/other_user}",
"gists_url": "https://api.github.com/users/CLRW97/gists{/gist_id}",
"starred_url": "https://api.github.com/users/CLRW97/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CLRW97/subscriptions",
"organizations_url": "https://api.github.com/users/CLRW97/orgs",
"repos_url": "https://api.github.com/users/CLRW97/repos",
"events_url": "https://api.github.com/users/CLRW97/events{/privacy}",
"received_events_url": "https://api.github.com/users/CLRW97/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097547147,
"node_id": "MDU6TGFiZWwxMDk3NTQ3MTQ3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:ops",
"name": "comp:ops",
"color": "0052cc",
"default": false,
"description": "OPs related issues"
},
{
"id": 4032183365,
"node_id": "LA_kwDOArmXAs7wVjxF",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.9",
"name": "TF 2.9",
"color": "1CF842",
"default": false,
"description": "Issues found in the TF 2.9 release (or RCs)"
}
] | closed | false | {
"login": "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 | [
"@sushreebarsa \r\nI was able to reproduce the issue on colab using TF v2.11. please find the gist [here](https://colab.research.google.com/gist/tiruk007/caeaad719fbe8e97bf1a307ca73845de/untitled144.ipynb) for reference .\r\n\r\nThank you !",
"I observe the same behavior in `float32` and `float64` in Tensorflow, Could you please let me know what exact values you are referring to and what is the expected values in your case. Thanks!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"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/59830\">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/59830\">No</a>\n"
] | 2023-02-28T08:42:03 | 2023-05-11T01:54:41 | 2023-05-11T01:54:20 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
tf 2.9
### Custom Code
Yes
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
Currently, no segment_std operation exists in tensorflow. Thus, I am implementing the function by myself in python using built-in tf methods. std_r=tf.math.reduce_std(...) is a fast and optimized way to achieve that (see the code). Unfortunately, std_r defers from np.std on the segments if the data is in tf.float32 format. The issue does not happen with tf.float64. When I convert the ragged segments segments_r into a tensor, which is only possible if all segments have the same length), reduce_std works fine
```
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
import numpy as np
def _segment_std(data, segment_ids, name=None):
row_splits = tf.ragged.segment_ids_to_row_splits(segment_ids)
segments_r = tf.RaggedTensor.from_row_splits(data, row_splits)
std_r = tf.math.reduce_std(segments_r, axis=1)
segments_t = segments_r.to_tensor()
std_r_map = tf.map_fn(lambda x: tf.math.reduce_std(x, axis=0), segments_r)
std_t = tf.math.reduce_std(segments_t, axis=1)
for b in range(segments_r.shape[0]):
print("=======", b, "=======")
print(std_r[b])
print(std_r_map[b])
print(std_t[b])
print(data.dtype, row_splits.dtype, segments_r.dtype, segments_t.dtype, std_r.dtype, std_r_map.dtype, std_t.dtype)
return segments_r, segments_t
data_32 = tf.random.uniform((18, 6), dtype=tf.float32)
data_64 = tf.cast(data_32, dtype=tf.float64)
segment_ids = tf.constant([0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5])
segments_r_32, segments_t_32 = _segment_std(data_32, segment_ids)
print("======= numpy =======")
print(np.std(segments_r_32.numpy(), axis=1))
print(np.std(segments_t_32.numpy(), axis=1))
segments_r_64, segments_t_64 = _segment_std(data_64, segment_ids)
print("======= numpy =======")
print(np.std(segments_r_64.numpy(), axis=1))
print(np.std(segments_t_64.numpy(), axis=1))
```
### Relevant log output
```shell
======= 0 =======
tf.Tensor([0.15954268 0.14723612 0.3377797 0.22492617 0.22479114 0.04101199], shape=(6,), dtype=float32)
tf.Tensor([0.15954268 0.14723626 0.3377797 0.2249262 0.22479111 0.04101215], shape=(6,), dtype=float32)
tf.Tensor([0.15954268 0.14723626 0.3377797 0.2249262 0.22479111 0.04101215], shape=(6,), dtype=float32)
======= 1 =======
tf.Tensor([0.2185983 0.41067353 0.14908639 0.40719846 0.21105738 0.18947895], shape=(6,), dtype=float32)
tf.Tensor([0.21859837 0.4106735 0.14908642 0.40719846 0.2110574 0.18947898], shape=(6,), dtype=float32)
tf.Tensor([0.21859837 0.4106735 0.14908642 0.40719846 0.2110574 0.18947898], shape=(6,), dtype=float32)
======= 2 =======
tf.Tensor([0.05812957 0.31665203 0.2071376 0.3885405 0.09823482 0.27517167], shape=(6,), dtype=float32)
tf.Tensor([0.05812923 0.3166521 0.20713761 0.38854057 0.09823488 0.27517167], shape=(6,), dtype=float32)
tf.Tensor([0.05812923 0.3166521 0.20713761 0.38854057 0.09823488 0.27517167], shape=(6,), dtype=float32)
======= 3 =======
tf.Tensor([0.06295965 0.09678382 0.42397946 0.18043025 0.23579012 0.12517032], shape=(6,), dtype=float32)
tf.Tensor([0.06295984 0.09678387 0.42397946 0.18043028 0.23579012 0.12517034], shape=(6,), dtype=float32)
tf.Tensor([0.06295984 0.09678387 0.42397946 0.18043028 0.23579012 0.12517034], shape=(6,), dtype=float32)
======= 4 =======
tf.Tensor([0.01316889 0.16237932 0.28821537 0.11204658 0.17594427 0.34890616], shape=(6,), dtype=float32)
tf.Tensor([0.01316908 0.16237934 0.2882153 0.11204645 0.17594407 0.34890622], shape=(6,), dtype=float32)
tf.Tensor([0.01316908 0.16237934 0.2882153 0.11204645 0.17594407 0.34890622], shape=(6,), dtype=float32)
======= 5 =======
tf.Tensor([0.2691938 0.07409578 0.2120972 0.21070714 0.08790783 0.38431 ], shape=(6,), dtype=float32)
tf.Tensor([0.26919377 0.07409566 0.21209723 0.21070711 0.08790784 0.38431004], shape=(6,), dtype=float32)
tf.Tensor([0.26919377 0.07409566 0.21209723 0.21070711 0.08790784 0.38431004], shape=(6,), dtype=float32)
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59830/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59830/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59829 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59829/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59829/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59829/events | https://github.com/tensorflow/tensorflow/pull/59829 | 1,602,403,671 | PR_kwDOArmXAs5K5Ukw | 59,829 | [ROCM] Add ROCM option to tensorflow-build | {
"login": "jayfurmanek",
"id": 8660918,
"node_id": "MDQ6VXNlcjg2NjA5MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/8660918?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jayfurmanek",
"html_url": "https://github.com/jayfurmanek",
"followers_url": "https://api.github.com/users/jayfurmanek/followers",
"following_url": "https://api.github.com/users/jayfurmanek/following{/other_user}",
"gists_url": "https://api.github.com/users/jayfurmanek/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jayfurmanek/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jayfurmanek/subscriptions",
"organizations_url": "https://api.github.com/users/jayfurmanek/orgs",
"repos_url": "https://api.github.com/users/jayfurmanek/repos",
"events_url": "https://api.github.com/users/jayfurmanek/events{/privacy}",
"received_events_url": "https://api.github.com/users/jayfurmanek/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 | [
"Thanks for working on this!\r\n\r\nCan you fork a new directory, like tf_sig_build_dockerfiles_rocm, instead of changing this directory? Afterwards, add ownership details to the top of the README, similar to how subdirectories in the SIG Build repo work.\r\n\r\nI know that will introduce more work for you because changes to the originals won't carry over to ROCm unless you use symlinks or something similar. However, I want to encapsulate each variant of the containers (official, ROCm, ARM64, etc.) so that our maintainers don't need to worry about colliding with the other variants.",
"That makes sense. For common files, are symlinks ok, or should we have a common directory or something as well? Sometimes dependencies change we'll have no idea when or why.",
"Symlinks are good for now, I think. We can look at adding a common directory again later, if it doesn't work out.",
"Hi @jayfurmanek Can you please check @angerson's [comments](https://github.com/tensorflow/tensorflow/pull/59829#issuecomment-1456994681) and keep us posted ? Thank you!",
"Hi @jayfurmanek Any update on this PR? Please. Thank you!",
"I'm going to re-factor this according to Austin's comments. I'll open a separate PR for that."
] | 2023-02-28T05:37:02 | 2023-05-05T14:04:31 | 2023-05-05T14:04:25 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59829",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59829",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59829.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59829.patch",
"merged_at": null
} | This PR adds ROCM support to the tensorflow-build container framework.
The idea is to slot ROCM along side the CUDA container in an unobtrusive way.
The only change on the CUDA side will be needing to explicitly set the --config=cuda for the bazel build command, which is probably more proper anyway and matches the main .bazelrc.
Setting this as draft so I can to do more testing on the CUDA side to make sure I didn't break anything
FYI @angerson
I'm interested in your thoughts here. thx! | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59829/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59829/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59828 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59828/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59828/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59828/events | https://github.com/tensorflow/tensorflow/issues/59828 | 1,602,318,448 | I_kwDOArmXAs5fgXBw | 59,828 | Missing Window GPU prebuilt binary for 2.11.0 | {
"login": "adamcrume",
"id": 1134533,
"node_id": "MDQ6VXNlcjExMzQ1MzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/1134533?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adamcrume",
"html_url": "https://github.com/adamcrume",
"followers_url": "https://api.github.com/users/adamcrume/followers",
"following_url": "https://api.github.com/users/adamcrume/following{/other_user}",
"gists_url": "https://api.github.com/users/adamcrume/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adamcrume/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adamcrume/subscriptions",
"organizations_url": "https://api.github.com/users/adamcrume/orgs",
"repos_url": "https://api.github.com/users/adamcrume/repos",
"events_url": "https://api.github.com/users/adamcrume/events{/privacy}",
"received_events_url": "https://api.github.com/users/adamcrume/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 473173351,
"node_id": "MDU6TGFiZWw0NzMxNzMzNTE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:build/install",
"name": "type:build/install",
"color": "159b2e",
"default": false,
"description": "Build and install issues"
},
{
"id": 1188421838,
"node_id": "MDU6TGFiZWwxMTg4NDIxODM4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/subtype:windows",
"name": "subtype:windows",
"color": "b619ea",
"default": false,
"description": "Windows Build/Installation Issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | open | false | {
"login": "learning-to-play",
"id": 66660475,
"node_id": "MDQ6VXNlcjY2NjYwNDc1",
"avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/learning-to-play",
"html_url": "https://github.com/learning-to-play",
"followers_url": "https://api.github.com/users/learning-to-play/followers",
"following_url": "https://api.github.com/users/learning-to-play/following{/other_user}",
"gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}",
"starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions",
"organizations_url": "https://api.github.com/users/learning-to-play/orgs",
"repos_url": "https://api.github.com/users/learning-to-play/repos",
"events_url": "https://api.github.com/users/learning-to-play/events{/privacy}",
"received_events_url": "https://api.github.com/users/learning-to-play/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "learning-to-play",
"id": 66660475,
"node_id": "MDQ6VXNlcjY2NjYwNDc1",
"avatar_url": "https://avatars.githubusercontent.com/u/66660475?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/learning-to-play",
"html_url": "https://github.com/learning-to-play",
"followers_url": "https://api.github.com/users/learning-to-play/followers",
"following_url": "https://api.github.com/users/learning-to-play/following{/other_user}",
"gists_url": "https://api.github.com/users/learning-to-play/gists{/gist_id}",
"starred_url": "https://api.github.com/users/learning-to-play/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/learning-to-play/subscriptions",
"organizations_url": "https://api.github.com/users/learning-to-play/orgs",
"repos_url": "https://api.github.com/users/learning-to-play/repos",
"events_url": "https://api.github.com/users/learning-to-play/events{/privacy}",
"received_events_url": "https://api.github.com/users/learning-to-play/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @adamcrume, \r\nAs per the official Tensorflow GitHub page, the `Libtensorflow Windows GPU` is temporarily unavailable. Kindly check this [reference](https://github.com/tensorflow/tensorflow/blob/90fda24ac68fffb9d6c3ca8db0268d47b6404735/README.md#official-builds). Thank you! ",
"That's... what I said?",
"Hi,\r\n\r\nWe don't support GPU on native Windows since TF 2.10. You can download the binaries for TF 2.10.0 from https://www.tensorflow.org/install/lang_c. ",
"https://github.com/tensorflow/tensorflow/blob/90fda24ac68fffb9d6c3ca8db0268d47b6404735/README.md#official-builds just says \"Status Temporarily Unavailable\", nothing about it being permanently removed. Dropping GPU support on Windows wasn't widely announced. I see https://github.com/tensorflow/tensorflow/releases/tag/v2.11.0 says \"For using TensorFlow GPU on Windows, you will need to install TensorFlow in WSL2\", but that's not even listed under Breaking Changes (which this definitely is!).",
"I am very disappointed and sad that native windows support was just dropped. Replacing it with wsl2 is not sufficient for processes and systems that don't have the ability to use wsl2 because, for example, they are also windows-native applications and porting is too expensive. So we can only use version 2.10 (of both the python and the C-API) and are stuck with it, which is a shame because we can't benefit from and participate in new developments.\r\n\r\n**All this leads to simply excluding and virtually discriminating against a large part of the Tensorflow community that uses Windows.** \r\n\r\nI hope and ask that you **bring back native windows support** and let people decide for themselves if they want to use native or wsl2. \r\n\r\nThank you for the development of Tensorflow!",
"Thanks for sharing! The change was announced long before 2.11.0 release. Please see https://discuss.tensorflow.org/t/moving-tensorflow-windows-gpu-to-wsl2/10957. There was also a blog post.\r\nI will reach out to the team about the release notes.",
"@GatGit12 I want to clarify that native Windows packages for CPU are available.",
"@learning-to-play Sorry, I meant native Windows GPU (CUDA) support in my post.\r\n\r\nWindows CPU only is unfortunately not an alternative due to the massive increase in compute time. \r\n",
"Time to move to PyTorch which isn't biased in favor of an OS only running on 3% of the world's desktops/laptops."
] | 2023-02-28T03:46:40 | 2023-07-18T18:26:07 | null | CONTRIBUTOR | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
binary
### Tensorflow Version
tf 2.11
### Custom Code
No
### OS Platform and Distribution
Windows
### Mobile device
_No response_
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-windows-x86_64-2.11.0.zip is missing, which is breaking TensorFlow Rust for Windows with GPU: https://github.com/tensorflow/rust/issues/400
```
### Standalone code to reproduce the issue
```shell
N/A
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59828/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/59828/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59827 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59827/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59827/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59827/events | https://github.com/tensorflow/tensorflow/pull/59827 | 1,602,013,446 | PR_kwDOArmXAs5K4CSs | 59,827 | Add new string ops fuzzers and remove old ones | {
"login": "DavidKorczynski",
"id": 657617,
"node_id": "MDQ6VXNlcjY1NzYxNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/657617?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DavidKorczynski",
"html_url": "https://github.com/DavidKorczynski",
"followers_url": "https://api.github.com/users/DavidKorczynski/followers",
"following_url": "https://api.github.com/users/DavidKorczynski/following{/other_user}",
"gists_url": "https://api.github.com/users/DavidKorczynski/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DavidKorczynski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DavidKorczynski/subscriptions",
"organizations_url": "https://api.github.com/users/DavidKorczynski/orgs",
"repos_url": "https://api.github.com/users/DavidKorczynski/repos",
"events_url": "https://api.github.com/users/DavidKorczynski/events{/privacy}",
"received_events_url": "https://api.github.com/users/DavidKorczynski/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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 | [
"CC @fcoUnda @learning-to-play"
] | 2023-02-27T21:54:54 | 2023-03-01T19:58:26 | 2023-03-01T19:58:25 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59827",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59827",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59827.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59827.patch",
"merged_at": "2023-03-01T19:58:25"
} | Adds new string ops fuzzers using the FuzzTest fuzzer-style, and removes the existing fuzzers for string split operations.
The current string split fuzzer are not hitting the logic of the string split operations, because the first argument they pass to the operation is set to be a string rather than a vector of strings. Consequently, the fuzzers are running into some blockers early in the code hindering the fuzzers in exploring the actual logic they target: https://storage.googleapis.com/oss-fuzz-coverage/tensorflow/reports/20230225/linux/proc/self/cwd/tensorflow/core/kernels/string_split_op.cc.html#L177 | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59827/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59827/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59826 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59826/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59826/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59826/events | https://github.com/tensorflow/tensorflow/issues/59826 | 1,601,914,124 | I_kwDOArmXAs5fe0UM | 59,826 | mixed_float16 in Keras example stops the model to learn | {
"login": "To3No7",
"id": 5587934,
"node_id": "MDQ6VXNlcjU1ODc5MzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/5587934?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/To3No7",
"html_url": "https://github.com/To3No7",
"followers_url": "https://api.github.com/users/To3No7/followers",
"following_url": "https://api.github.com/users/To3No7/following{/other_user}",
"gists_url": "https://api.github.com/users/To3No7/gists{/gist_id}",
"starred_url": "https://api.github.com/users/To3No7/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/To3No7/subscriptions",
"organizations_url": "https://api.github.com/users/To3No7/orgs",
"repos_url": "https://api.github.com/users/To3No7/repos",
"events_url": "https://api.github.com/users/To3No7/events{/privacy}",
"received_events_url": "https://api.github.com/users/To3No7/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 4829271983,
"node_id": "LA_kwDOArmXAs8AAAABH9jXrw",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.11",
"name": "TF 2.11",
"color": "46B4D7",
"default": false,
"description": "Issues related to TF 2.11"
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@To3No7,\r\nThank you for opening this issue. Development of keras moved to another [repository](https://github.com/keras-team/keras/issues). \r\n\r\nCould you please post this issue on keras-team/keras [repo](https://github.com/keras-team/keras/issues).\r\nTo know more please refer:\r\nhttps://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999\r\nThank you!\r\n",
"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/59826\">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/59826\">No</a>\n"
] | 2023-02-27T20:40:21 | 2023-03-18T01:58:16 | 2023-03-18T01:58:13 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
TensorFlow version: 2.11.0 as well as 2.13.0-dev20230227
### Custom Code
Yes
### OS Platform and Distribution
Colab & Ubuntu 22.04
### Mobile device
_No response_
### Python version
3.9
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
Colab & 12.0
### GPU model and memory
T4 & 3090
### Current Behaviour?
```shell
If I run the Keras vision example forwardforward from:
https://keras.io/examples/vision/forwardforward/
in Colab or on a Local Machine with 3090 and turn on mixed_float16 with the code
´´´
gpu_devices = tf.config.list_physical_devices('GPU')
if gpu_devices:
details = tf.config.experimental.get_device_details(gpu_devices[0])
compute_capability=details.get('compute_capability')
print("Compute capability:",compute_capability)
if compute_capability[0]>6:
print("Turning on mixed_float16")
policy = tf.keras.mixed_precision.Policy('mixed_float16')
tf.keras.mixed_precision.set_global_policy(policy)
´´´
Then the model no longer trains
When running
history = model.fit(train_dataset, epochs=epochs)
In mixed_float16 one gets
1/1 [==============================] - 49s 49s/step - FinalLoss: 0.9510
Epoch 2/250
1/1 [==============================] - 1s 1s/step - FinalLoss: 0.9510
Epoch 3/250
1/1 [==============================] - 1s 1s/step - FinalLoss: 0.9510
Epoch 4/250
1/1 [==============================] - 1s 1s/step - FinalLoss: 0.9510
…
Epoch 250/250
1/1 [==============================] - 1s 1s/step - FinalLoss: 0.9510
Clearly not training!
While without mixed_float16 one gets something like:
1/1 [==============================] - 45s 45s/step - FinalLoss: 0.7278
Epoch 2/250
1/1 [==============================] - 2s 2s/step - FinalLoss: 0.7081
Epoch 3/250
1/1 [==============================] - 2s 2s/step - FinalLoss: 0.7011
Epoch 4/250
…
Epoch 250/250
1/1 [==============================] - 2s 2s/step - FinalLoss: 0.3117
This can be reproduced by turning on the mixed_float16 according to the code above in the colab notebook https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/vision/ipynb/forwardforward.ipynb
```
### Standalone code to reproduce the issue
```shell
https://colab.research.google.com/drive/1U0-NXNjyh6onGsGmiTfoqkX-1rNgoTuq?usp=sharing
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59826/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59826/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59825 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59825/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59825/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59825/events | https://github.com/tensorflow/tensorflow/pull/59825 | 1,601,640,939 | PR_kwDOArmXAs5K2ySi | 59,825 | Get CUDA dependencies from PyPI packages | {
"login": "nluehr",
"id": 1873655,
"node_id": "MDQ6VXNlcjE4NzM2NTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1873655?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nluehr",
"html_url": "https://github.com/nluehr",
"followers_url": "https://api.github.com/users/nluehr/followers",
"following_url": "https://api.github.com/users/nluehr/following{/other_user}",
"gists_url": "https://api.github.com/users/nluehr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nluehr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nluehr/subscriptions",
"organizations_url": "https://api.github.com/users/nluehr/orgs",
"repos_url": "https://api.github.com/users/nluehr/repos",
"events_url": "https://api.github.com/users/nluehr/events{/privacy}",
"received_events_url": "https://api.github.com/users/nluehr/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 1169365494,
"node_id": "MDU6TGFiZWwxMTY5MzY1NDk0",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:M",
"name": "size:M",
"color": "adafea",
"default": false,
"description": "CL Change Size: Medium"
},
{
"id": 1754777628,
"node_id": "MDU6TGFiZWwxNzU0Nzc3NjI4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:gpu:tensorrt",
"name": "comp:gpu:tensorrt",
"color": "ea98ba",
"default": false,
"description": "Issues specific to TensorRT"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @nluehr This PR is in draft, any update on this? Please. Thank you!",
"@nluehr Nice, thanks! Internally we're talking about what we can do to bring this convenience to users. Using the new wheels somehow looks like a big improvement over [TensorFlow's miniconda-based instructions](https://www.tensorflow.org/install/pip#step-by-step_instructions).\r\n\r\nI have some questions about the way the CUDA wheels will interact with TF's wheels and CUDA library discovery.\r\n\r\n1. If the Bazel changes in this PR were to land without the wheel's explicit dependencies on those versioned CUDA packages, would the wheel be able to find the CUDA libraries as long as they are installed somewhere on the system or in the same venv? \r\n2. What happens if there are differently versioned CUDA wheels installed on the system already?\r\n3. If the Bazel changes in this PR were to land without the wheel's explicit dependencies on those versioned CUDA packages, could the TensorFlow documentation simply say \"install this list of CUDA packages in your system or venv\" and it would always work?\r\n4. Just to confirm, there's no equivalent, easy packages with the development headers for compiling TF, right? I'm assuming we can't use anything similar for building TF; just for the runtime.\r\n\r\nIf we can, I'm leaning towards an approach where we change the installation instructions to suggest a list of wheels in a Python env --- instead of putting CUDA dependencies directly in setup.py. If we add those dependencies, I can imagine some users may be surprised by the new behavior: \r\n\r\n - Users who only want CPU support would always end up installing the large CUDA packages\r\n - Users who may have CUDA installed already would install it again, possibly confusing their system\r\n - Users who have another CUDA Python package installed somewhere would install them again, and it's not clear which would be used\r\n - If we add an extra-dependencies modifier to the wheel, like `tensorflow[cuda]`, then installation instructions, tutorials and requirements.txt files all over the ecosystem would get messy (i.e. simply depending on \"tensorflow\" is no longer the default behavior; requirements.txt files may start depending on tensorflow[cuda] which could then introduce the same problems as the previous bullets).",
"Hi @angerson Thanks for taking a look. To answer your questions:\r\n\r\n1. If the Bazel changes in this PR were to land without the wheel's dependencies, would the wheel be able to find CUDA libraries installed somewhere else on the system or in the same venv?\r\n For system packages, yes. The rpath mechanism prepends to the regular ld search paths (e.g., LD_LIBRARY_PATH, ldconfig paths, etc.).\r\n venv packages would also work (provided we're talking about nvidia's lib wheels), provided everything is in the same venv. The rpath mechanism assumes only that the cuda lib pip packages are installed adjacent to the tensorflow package. (Things would not work in a corner case such as installing the cuda libs among the the system packages while installing tensorflow in a \"system-site-packages\" venv.)\r\n Also, third party cuda pacakges (e.g., from conda) are likely packaged differently, so they would likely not be found unless explicitly added to the ld path.\r\n\r\n2. What happens if there are differently versioned CUDA wheels installed on the system already?\r\n For the most part, Nvidia's wheels install into site-packages/nvidia/libname/lib/. I think other cuda wheels probably don't match this structure and would be ignored.\r\n\r\n3. If the Bazel changes in this PR were to land without the wheel's explicit dependencies on those versioned CUDA packages, could the TensorFlow documentation simply say \"install this list of CUDA packages in your system or venv\" and it would always work?\r\n The package names differ depending on origin. I think today the docs specify the actual deb/rpm packages to install, the pip packages would need to be listed similarly. (otherwise someone might publish a wheel with a similar enough name to cause confusion). But in principle, it shouldn't matter which supported option the user chooses (official debs or official wheels). It should just work.\r\n\r\n4. Just to confirm, there's no equivalent, easy packages with the development headers for compiling TF, right? I'm assuming we can't use anything similar for building TF; just for the runtime.\r\n Correct. These wheels are intended for runtime deployment only. Note however, that the headers are published separately at http://gitlab.com/nvidia/headers. You should be able to combine those with the wheel libs to get pretty close to what you have in mind.",
"@angerson,\r\n\r\nI've thought a bit about your proposal to include the rpaths but not the explicit dependencies. It makes sense that TensorFlow should not depend by default on the nvidia wheels (since, as you note, many use cases don't need them).\r\n\r\nI think the chance of confusing the system is fairly small. I doubt there will be collisions with package locations such as `site-packages/nvidia/cublas/lib` and it's also unlikely the system loader would be configured to search such places when loading libs for non-tensorflow programs.\r\n\r\nAs far is it not being clear which library will be used, the rpath linker entries will place the wheel locations at the highest priority for the loader. So for tensorflow, the nvidia wheels will take precedence over both other system or wheel-packaged libs (as those all must depend on ldconfig changes or LD_LIBRARY_PATH).\r\n\r\nI think an extra-dependencies modifier would be very helpful because users no longer need to concern themselves with the exact list of lib packages needed to enable cuda support (and docs wouldn't go out of date every time TensorFlow updates its cuda version). I don't think excluding an extra-deps option would avoid the downsides you mention. If tutorials, installation instructions, and requirements.txt files would be tempted to include the cuda extra deps modifier, are they going to be less likely to include the explicit list of (hard to remember) individual cuda wheels? If the include the latter, their docs are sure to go out of date as soon as TensorFlow updates its cuda version.\r\n\r\nPerhaps it would help users if we give the extra-deps modifier a more verbose name, something like `tensorflow[with-cuda-wheel-libs]` so it's clear that this modifier isn't enabling core cuda support, but rather is a feature to easily fetching the needed libs.",
"Hi @nluehr Can you please check @Artem-B's comments and keep us posted ? Thank you!",
"Thanks guys. There are some minor lint issues that I am gonna try and just take care of myself later this afternoon to get it merged without any hassle. ",
"It's taking a little longer than I expected due to internal/external differences.",
"Update: I'm still having trouble with this. It's trickier than I thought so it's going slowly.",
"> The rpath mechanism assumes only that the cuda lib pip packages are installed adjacent to the tensorflow package.\r\n\r\nHi, there is a way to load cuda lib pip packages in a different path, which even works in the current TF version:\r\n\r\n```py\r\n# TF 2.12 installed\r\nimport ctypes\r\nfrom importlib import import_module,\r\nfrom pathlib import Path\r\n\r\ndef dlopen_library(module: str, filename: str):\r\n try:\r\n m = import_module(module)\r\n except ModuleNotFoundError:\r\n pass\r\n else:\r\n libs = sorted(Path(m.__file__).parent.glob(filename))\r\n # hope that there is only one version installed...\r\n if len(libs):\r\n ctypes.CDLL(str(libs[0].absolute()))\r\n\r\n# dlopen pip cuda library before tensorflow\r\nif platform.system() == \"Linux\":\r\n dlopen_library(\"nvidia.cuda_runtime.lib\", \"libcudart.so*\")\r\n dlopen_library(\"nvidia.cublas.lib\", \"libcublasLt.so*\")\r\n dlopen_library(\"nvidia.cublas.lib\", \"libcublas.so*\")\r\n dlopen_library(\"nvidia.cufft.lib\", \"libcufft.so*\")\r\n dlopen_library(\"nvidia.curand.lib\", \"libcurand.so*\")\r\n dlopen_library(\"nvidia.cusolver.lib\", \"libcusolver.so*\")\r\n dlopen_library(\"nvidia.cusparse.lib\", \"libcusparse.so*\")\r\n dlopen_library(\"nvidia.cudnn.lib\", \"libcudnn.so*\")\r\n\r\nimport tensorflow as tf\r\n```\r\n\r\nThe critical point is to use `importlib.import_module` to get the absolute path of the installed CUDA libraries. I'd like to know if this will be helpful.",
"Hi @nluehr Can you please resolve conflicts? Thank you!",
"Hi @nluehr Can you please resolve conflicts? Thank you!",
"Rebased to resolve merge conflicts.\r\n@angerson PTAL.\r\n",
"@nluehr @trevor-m Thanks a lot for helping un-stick this. I know the changes were small but I had no idea what to do about them. As part of the merge, I had to make some adjustments to get everything working in our CI and export system -- hopefully nothing I did was incorrect. The merge should come through pretty soon and we should be able to get some data along with it.",
"Success! The latest versions of tf-nightly can now be amended with `[and-cuda]`. @MichaelHudgins FYI. The next step to make this land in TF 2.14 is just to ensure that the list of extras is kept up-to-date if the TF team upgrades CUDA versions.\r\n\r\n```\r\ndocker run -it --rm --gpus=all nvidia/cuda:11.8.0-base-ubuntu22.04 bash\r\n> apt update\r\n> apt install python3-pip\r\n> pip install tf-nightly[and-cuda]\r\n> python3\r\n>> import tensorflow as tf\r\n>> tf.debugging.set_log_device_placement(True)\r\n>> a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])\r\n>> b = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])\r\n>> c = tf.matmul(a, b)\r\n>> print(c)\r\n```\r\n@trevor-m @nluehr Thanks a lot for contributing this and helping me fix the import issues! FYI, the logs for my test above complained about \"Unable to register cuDNN (and cuBLAS and cuFFT) factory\", as seen here: https://gist.github.com/angerson/8058444763245554436b0604ea42aaa8. That's not related to this change, right?",
"> Success! The latest versions of tf-nightly can now be amended with `[and-cuda]`. @MichaelHudgins FYI. The next step to make this land in TF 2.14 is just to ensure that the list of extras is kept up-to-date if the TF team upgrades CUDA versions.\r\n> \r\n> ```\r\n> docker run -it --rm --gpus=all nvidia/cuda:11.8.0-base-ubuntu22.04 bash\r\n> > apt update\r\n> > apt install python3-pip\r\n> > pip install tf-nightly[and-cuda]\r\n> > python3\r\n> >> import tensorflow as tf\r\n> >> tf.debugging.set_log_device_placement(True)\r\n> >> a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])\r\n> >> b = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])\r\n> >> c = tf.matmul(a, b)\r\n> >> print(c)\r\n> ```\r\n> \r\n> @trevor-m @nluehr Thanks a lot for contributing this and helping me fix the import issues! FYI, the logs for my test above complained about \"Unable to register cuDNN (and cuBLAS and cuFFT) factory\", as seen here: https://gist.github.com/angerson/8058444763245554436b0604ea42aaa8. That's not related to this change, right?\r\n\r\nThanks a bunch @angerson! No, those are unrelated warnings due to duplicate registrations. They already existed and can be safely ignored.",
"@fchollet What's the context for this getting re-opened?",
"@angerson never mind.",
"There it is! https://www.tensorflow.org/install/pip"
] | 2023-02-27T17:42:41 | 2023-10-02T17:17:55 | 2023-07-12T18:37:50 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59825",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59825",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59825.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59825.patch",
"merged_at": null
} | This PR is a POC demonstrating building TensorFlow so that it depends on NVIDIA's wheel-based library releases for the required CUDA libraries and runtime. Users will still need to install the CUDA driver separately, but all other NVIDIA library dependencies should be fetched automatically by pip.
For example, after building the wheel with the usual OSS build scripts (based on cuda 11.8), the resulting wheel could be installed in a fairly minimalist ubuntu 20.04 environment as follows:
```
docker run --rm -it --gpus all -v /path/to/tensorflow/pkg:/tf/pkg nvidia/cuda:12.0.1-base-ubuntu20.04
apt update && apt install -y --no-install-recommends curl python3 python3-pip
python3 -mpip install --upgrade pip
pip3 install /tf/pkg/tensorflow-*.whl
```
Notice that the CUDA driver's forward compatibility allows users to use the latest (here CUDA 12) base container/driver, while pip pulls in the necessary CUDA 11.8-based libraries as needed.
Currently, NVIDIA wheels are released only for linux platforms and the x86_64 architecture. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59825/reactions",
"total_count": 3,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 3,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59825/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59824 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59824/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59824/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59824/events | https://github.com/tensorflow/tensorflow/issues/59824 | 1,601,150,830 | I_kwDOArmXAs5fb59u | 59,824 | Tensorflow lite build error for Aarch64 | {
"login": "pjindal91",
"id": 10368674,
"node_id": "MDQ6VXNlcjEwMzY4Njc0",
"avatar_url": "https://avatars.githubusercontent.com/u/10368674?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjindal91",
"html_url": "https://github.com/pjindal91",
"followers_url": "https://api.github.com/users/pjindal91/followers",
"following_url": "https://api.github.com/users/pjindal91/following{/other_user}",
"gists_url": "https://api.github.com/users/pjindal91/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjindal91/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjindal91/subscriptions",
"organizations_url": "https://api.github.com/users/pjindal91/orgs",
"repos_url": "https://api.github.com/users/pjindal91/repos",
"events_url": "https://api.github.com/users/pjindal91/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjindal91/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": 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": "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 | [
"Hello @tilakrayal @pjpratik any ideas? Thanks in advance.",
"Hi @pjindal91 Thanks for reporting the issue.\r\n\r\nSorry for the delayed response.\r\n\r\nYou can try to build with target architecture `PYTHON=python3 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh aarch64` in your case.\r\n\r\nI was able to build for aarch64 using tool chain as given in [documentation](https://www.tensorflow.org/lite/guide/build_cmake_arm#build_for_aarch64_arm64) successfully on Ubuntu 20.04. Please find the gist [here](https://colab.research.google.com/gist/pjpratik/af0d6f62408877b78a36879ed3979336/59824.ipynb).\r\n\r\nThanks.",
"Hi @pjpratik thanks for the response. I think the issue might be specific to platform and the ubuntu/glibc versions i am using. Would it be possible for you to try to natively built on aarch64 with Ubuntu 18.04.6 LTS and glibc=2.27?",
"FYI @pjpratik in case it helps i was able to build v2.4.0 successfully. So not sure if v2.5.0 is pulling some buggy lib or the above setup i have(Ubuntu 18.04.6 LTS and glibc=2.27) is not compatible with it.",
"Hi @pjindal91 sorry for the delayed response\r\n\r\nI have tried to built natively on aarch64 with Ubuntu 18.04.6 LTS and glibc=2.27 with v2.5 and master branch as well and the attempt was successful. Please find the screenshots below\r\n\r\nFor v2.5\r\n\r\n![image](https://user-images.githubusercontent.com/118897289/225010812-b302f055-37ab-4a97-8a86-201df5c0a724.png)\r\n\r\nFor master\r\n\r\n![image](https://user-images.githubusercontent.com/118897289/225010939-ae41d856-df08-481c-81f8-df3286428955.png)\r\n\r\nThanks.\r\n\r\n",
"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/59824\">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/59824\">No</a>\n"
] | 2023-02-27T13:05:52 | 2023-03-31T01:56:32 | 2023-03-31T01:56:30 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Build/Install
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
Tensorflow lite master branch
### Custom Code
No
### OS Platform and Distribution
Ubuntu 18.04.6 LTS
### Mobile device
Nvidia Jetson nano
### Python version
3.8
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
Trying to build tensorflow lite wheels using the following command
`
PYTHON=python3 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh native
`
While trying to build, getting compilation errors of the likes:
In file included from /home/piyush/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/cmake_build/xnnpack/src/amalgam/neonfp16arith.c:8::
/usr/lib/gcc/aarch64-linux-gnu/7/include/arm_neon.h:30805:1: error: inlining failed in call to always_inline ‘vaddq_f16’: target specific option mismatch
vaddq_f16 (float16x8_t __a, float16x8_t __b)
^~~~~~~~~
/home/piyush/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/cmake_build/xnnpack/src/amalgam/neonfp16arith.c:277:27: note: called from here
const float16x8_t vsum2345 = vaddq_f16(vsum23, vsum45);
```
```
### Standalone code to reproduce the issue
```shell
Build using above command on Aarch64. I am using Nvidia Jetson Nano with Ubuntu 18.04.6 LTS
```
### Relevant log output
```shell
In file included from /home/piyush/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/cmake_build/xnnpack/src/amalgam/neonfp16arith.c:8::
/usr/lib/gcc/aarch64-linux-gnu/7/include/arm_neon.h:30805:1: error: inlining failed in call to always_inline ‘vaddq_f16’: target specific option mismatch
vaddq_f16 (float16x8_t __a, float16x8_t __b)
^~~~~~~~~
/home/piyush/tensorflow_src/tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/cmake_build/xnnpack/src/amalgam/neonfp16arith.c:120:27: note: called from here
const float16x8_t vsum = vaddq_f16(vsum2345, vsum01678);
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59824/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59824/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59823 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59823/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59823/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59823/events | https://github.com/tensorflow/tensorflow/pull/59823 | 1,601,023,986 | PR_kwDOArmXAs5K0tHz | 59,823 | [Linaro:ARM_CI] Switch to using Docker container with Dual ABI | {
"login": "elfringham",
"id": 10442001,
"node_id": "MDQ6VXNlcjEwNDQyMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/10442001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elfringham",
"html_url": "https://github.com/elfringham",
"followers_url": "https://api.github.com/users/elfringham/followers",
"following_url": "https://api.github.com/users/elfringham/following{/other_user}",
"gists_url": "https://api.github.com/users/elfringham/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elfringham/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elfringham/subscriptions",
"organizations_url": "https://api.github.com/users/elfringham/orgs",
"repos_url": "https://api.github.com/users/elfringham/repos",
"events_url": "https://api.github.com/users/elfringham/events{/privacy}",
"received_events_url": "https://api.github.com/users/elfringham/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364458,
"node_id": "MDU6TGFiZWwxMTY5MzY0NDU4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:S",
"name": "size:S",
"color": "adafea",
"default": false,
"description": "CL Change Size: Small"
}
] | closed | false | {
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "nitins17",
"id": 29348997,
"node_id": "MDQ6VXNlcjI5MzQ4OTk3",
"avatar_url": "https://avatars.githubusercontent.com/u/29348997?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nitins17",
"html_url": "https://github.com/nitins17",
"followers_url": "https://api.github.com/users/nitins17/followers",
"following_url": "https://api.github.com/users/nitins17/following{/other_user}",
"gists_url": "https://api.github.com/users/nitins17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nitins17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nitins17/subscriptions",
"organizations_url": "https://api.github.com/users/nitins17/orgs",
"repos_url": "https://api.github.com/users/nitins17/repos",
"events_url": "https://api.github.com/users/nitins17/events{/privacy}",
"received_events_url": "https://api.github.com/users/nitins17/received_events",
"type": "User",
"site_admin": false
},
{
"login": "penpornk",
"id": 38085909,
"node_id": "MDQ6VXNlcjM4MDg1OTA5",
"avatar_url": "https://avatars.githubusercontent.com/u/38085909?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/penpornk",
"html_url": "https://github.com/penpornk",
"followers_url": "https://api.github.com/users/penpornk/followers",
"following_url": "https://api.github.com/users/penpornk/following{/other_user}",
"gists_url": "https://api.github.com/users/penpornk/gists{/gist_id}",
"starred_url": "https://api.github.com/users/penpornk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/penpornk/subscriptions",
"organizations_url": "https://api.github.com/users/penpornk/orgs",
"repos_url": "https://api.github.com/users/penpornk/repos",
"events_url": "https://api.github.com/users/penpornk/events{/privacy}",
"received_events_url": "https://api.github.com/users/penpornk/received_events",
"type": "User",
"site_admin": false
},
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-02-27T11:46:04 | 2023-03-06T09:29:11 | 2023-03-01T21:15:15 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59823",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59823",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59823.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59823.patch",
"merged_at": "2023-03-01T21:15:15"
} | Use the Docker container with the toolset built with CXX11 Dual ABI enabled in it for AARCH64 builds to bring them into line with other CPU architectures. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59823/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59823/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59822 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59822/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59822/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59822/events | https://github.com/tensorflow/tensorflow/pull/59822 | 1,600,984,556 | PR_kwDOArmXAs5K0kyP | 59,822 | Update android audio classifier demo URL | {
"login": "Foxglove144",
"id": 30619249,
"node_id": "MDQ6VXNlcjMwNjE5MjQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/30619249?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Foxglove144",
"html_url": "https://github.com/Foxglove144",
"followers_url": "https://api.github.com/users/Foxglove144/followers",
"following_url": "https://api.github.com/users/Foxglove144/following{/other_user}",
"gists_url": "https://api.github.com/users/Foxglove144/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Foxglove144/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Foxglove144/subscriptions",
"organizations_url": "https://api.github.com/users/Foxglove144/orgs",
"repos_url": "https://api.github.com/users/Foxglove144/repos",
"events_url": "https://api.github.com/users/Foxglove144/events{/privacy}",
"received_events_url": "https://api.github.com/users/Foxglove144/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [] | 2023-02-27T11:18:02 | 2023-03-01T09:55:03 | 2023-03-01T09:54:55 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59822",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59822",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59822.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59822.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59822/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59822/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59821 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59821/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59821/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59821/events | https://github.com/tensorflow/tensorflow/pull/59821 | 1,600,855,453 | PR_kwDOArmXAs5K0I1u | 59,821 | [tosa] Slice the input of kernel based ops to the actual used size | {
"login": "Tessil",
"id": 21028116,
"node_id": "MDQ6VXNlcjIxMDI4MTE2",
"avatar_url": "https://avatars.githubusercontent.com/u/21028116?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Tessil",
"html_url": "https://github.com/Tessil",
"followers_url": "https://api.github.com/users/Tessil/followers",
"following_url": "https://api.github.com/users/Tessil/following{/other_user}",
"gists_url": "https://api.github.com/users/Tessil/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Tessil/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Tessil/subscriptions",
"organizations_url": "https://api.github.com/users/Tessil/orgs",
"repos_url": "https://api.github.com/users/Tessil/repos",
"events_url": "https://api.github.com/users/Tessil/events{/privacy}",
"received_events_url": "https://api.github.com/users/Tessil/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1169365682,
"node_id": "MDU6TGFiZWwxMTY5MzY1Njgy",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:L",
"name": "size:L",
"color": "adafea",
"default": false,
"description": "CL Change Size: Large"
},
{
"id": 4651658080,
"node_id": "LA_kwDOArmXAs8AAAABFUKrYA",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-tosa",
"name": "comp:lite-tosa",
"color": "bfdadc",
"default": false,
"description": "TFLite TOSA conversion issues"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @Tessil Can you please resolve conflicts? Thank you!",
"Hi @Tessil Can you please resolve conflicts? Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further.",
"@jpienaar Would it be possible to reopen the PR? Thanks!",
"@Tessil could you update merge conflicts? ",
"@jpienaar Thanks, I merged the latest changes from upstream. ",
"Hi @jpienaar could you check if the PR looks good? We would ideally like it to be merged before the 2.14 branch cut if possible.\r\n\r\nThanks",
"Hi @Tessil Can you please resolve conflicts? Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.",
"Thanks, I fixed the conflicts and added better support for dynamic shapes.\r\n\r\n@rsuderman Could you have a look when you have some time? Thanks!",
"Hi @rsuderman Can you please review this PR ? Thank you!",
"Hi @jpienaar, could you help review this PR?",
"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!",
"Hi @Tessil Can you please resolve conflicts? Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further."
] | 2023-02-27T10:01:05 | 2024-05-25T01:49:16 | 2024-05-25T01:49:03 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59821",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59821",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59821.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59821.patch",
"merged_at": null
} | Hi,
This PR adds, if needed, a `tosa.slice` operator before kernel-based operators to ensure only the actual used size is passed as input to these operators so that the pre-condition on OH/OW is respected (example in [tosa.conv2d](https://www.mlplatform.org/tosa/tosa_spec.html#_conv2d)). | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59821/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59821/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59820 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59820/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59820/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59820/events | https://github.com/tensorflow/tensorflow/pull/59820 | 1,600,818,157 | PR_kwDOArmXAs5K0A3q | 59,820 | Cache the result of cuModuleGetFunction | {
"login": "benbarsdell",
"id": 3979096,
"node_id": "MDQ6VXNlcjM5NzkwOTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/3979096?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/benbarsdell",
"html_url": "https://github.com/benbarsdell",
"followers_url": "https://api.github.com/users/benbarsdell/followers",
"following_url": "https://api.github.com/users/benbarsdell/following{/other_user}",
"gists_url": "https://api.github.com/users/benbarsdell/gists{/gist_id}",
"starred_url": "https://api.github.com/users/benbarsdell/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benbarsdell/subscriptions",
"organizations_url": "https://api.github.com/users/benbarsdell/orgs",
"repos_url": "https://api.github.com/users/benbarsdell/repos",
"events_url": "https://api.github.com/users/benbarsdell/events{/privacy}",
"received_events_url": "https://api.github.com/users/benbarsdell/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 390482148,
"node_id": "MDU6TGFiZWwzOTA0ODIxNDg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review",
"name": "awaiting review",
"color": "bc3869",
"default": false,
"description": "Pull request awaiting review"
},
{
"id": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 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-02-27T09:36:41 | 2023-03-01T15:29:49 | 2023-03-01T15:29:48 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59820",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59820",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59820.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59820.patch",
"merged_at": "2023-03-01T15:29:48"
} | This function has measurable overhead due to locks inside the GPU driver. Caching the result was observed to improve perf by up to 15% in some models.
Note that we believe TF used to cache the value, so this is considered to be a regression fix.
cc @nluehr @pjannaty | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59820/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59820/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59819 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59819/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59819/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59819/events | https://github.com/tensorflow/tensorflow/pull/59819 | 1,600,745,120 | PR_kwDOArmXAs5Kzw5G | 59,819 | Correct checks for Tensor::SubSlice() and Tensor::Slice() method accordingly to documentation and SubBuffer() checks (reopened #59266) | {
"login": "avoskoboinyk-lohika",
"id": 97965003,
"node_id": "U_kgDOBdbTyw",
"avatar_url": "https://avatars.githubusercontent.com/u/97965003?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/avoskoboinyk-lohika",
"html_url": "https://github.com/avoskoboinyk-lohika",
"followers_url": "https://api.github.com/users/avoskoboinyk-lohika/followers",
"following_url": "https://api.github.com/users/avoskoboinyk-lohika/following{/other_user}",
"gists_url": "https://api.github.com/users/avoskoboinyk-lohika/gists{/gist_id}",
"starred_url": "https://api.github.com/users/avoskoboinyk-lohika/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/avoskoboinyk-lohika/subscriptions",
"organizations_url": "https://api.github.com/users/avoskoboinyk-lohika/orgs",
"repos_url": "https://api.github.com/users/avoskoboinyk-lohika/repos",
"events_url": "https://api.github.com/users/avoskoboinyk-lohika/events{/privacy}",
"received_events_url": "https://api.github.com/users/avoskoboinyk-lohika/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
},
{
"id": 1478826728,
"node_id": "MDU6TGFiZWwxNDc4ODI2NzI4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:core",
"name": "comp:core",
"color": "024391",
"default": false,
"description": "issues related to core part of tensorflow"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"There are too many failures with this change. It looks like we do rely on the assumption that taking a subslice past the end returns an empty slice. Maybe removing the check on `start` will reduce the number of failures? Otherwise we need to fix all the affected tests.",
"Hi @avoskoboinyk-lohika Any update on this PR? Please. Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further."
] | 2023-02-27T08:55:14 | 2023-07-23T01:59:46 | 2023-07-23T01:59:41 | NONE | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59819",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59819",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59819.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59819.patch",
"merged_at": null
} | This is a reopened https://github.com/tensorflow/tensorflow/pull/59266 with comment fixes applied. | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59819/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59819/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59818 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59818/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59818/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59818/events | https://github.com/tensorflow/tensorflow/issues/59818 | 1,600,519,347 | I_kwDOArmXAs5fZfyz | 59,818 | XLA inference fails complaning about branch shape mismatches | {
"login": "sayakpaul",
"id": 22957388,
"node_id": "MDQ6VXNlcjIyOTU3Mzg4",
"avatar_url": "https://avatars.githubusercontent.com/u/22957388?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sayakpaul",
"html_url": "https://github.com/sayakpaul",
"followers_url": "https://api.github.com/users/sayakpaul/followers",
"following_url": "https://api.github.com/users/sayakpaul/following{/other_user}",
"gists_url": "https://api.github.com/users/sayakpaul/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sayakpaul/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sayakpaul/subscriptions",
"organizations_url": "https://api.github.com/users/sayakpaul/orgs",
"repos_url": "https://api.github.com/users/sayakpaul/repos",
"events_url": "https://api.github.com/users/sayakpaul/events{/privacy}",
"received_events_url": "https://api.github.com/users/sayakpaul/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 404586594,
"node_id": "MDU6TGFiZWw0MDQ1ODY1OTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower",
"name": "stat:awaiting tensorflower",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from tensorflower"
},
{
"id": 473172988,
"node_id": "MDU6TGFiZWw0NzMxNzI5ODg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug",
"name": "type:bug",
"color": "159b2e",
"default": false,
"description": "Bug"
},
{
"id": 1097546578,
"node_id": "MDU6TGFiZWwxMDk3NTQ2NTc4",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:keras",
"name": "comp:keras",
"color": "0052cc",
"default": false,
"description": "Keras related issues"
},
{
"id": 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": 4511033337,
"node_id": "LA_kwDOArmXAs8AAAABDODn-Q",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10",
"name": "TF 2.10",
"color": "C15088",
"default": false,
"description": ""
}
] | open | false | {
"login": "cheshire",
"id": 348959,
"node_id": "MDQ6VXNlcjM0ODk1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheshire",
"html_url": "https://github.com/cheshire",
"followers_url": "https://api.github.com/users/cheshire/followers",
"following_url": "https://api.github.com/users/cheshire/following{/other_user}",
"gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cheshire/subscriptions",
"organizations_url": "https://api.github.com/users/cheshire/orgs",
"repos_url": "https://api.github.com/users/cheshire/repos",
"events_url": "https://api.github.com/users/cheshire/events{/privacy}",
"received_events_url": "https://api.github.com/users/cheshire/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "cheshire",
"id": 348959,
"node_id": "MDQ6VXNlcjM0ODk1OQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/348959?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cheshire",
"html_url": "https://github.com/cheshire",
"followers_url": "https://api.github.com/users/cheshire/followers",
"following_url": "https://api.github.com/users/cheshire/following{/other_user}",
"gists_url": "https://api.github.com/users/cheshire/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cheshire/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cheshire/subscriptions",
"organizations_url": "https://api.github.com/users/cheshire/orgs",
"repos_url": "https://api.github.com/users/cheshire/repos",
"events_url": "https://api.github.com/users/cheshire/events{/privacy}",
"received_events_url": "https://api.github.com/users/cheshire/received_events",
"type": "User",
"site_admin": false
},
{
"login": "sachinprasadhs",
"id": 73069040,
"node_id": "MDQ6VXNlcjczMDY5MDQw",
"avatar_url": "https://avatars.githubusercontent.com/u/73069040?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sachinprasadhs",
"html_url": "https://github.com/sachinprasadhs",
"followers_url": "https://api.github.com/users/sachinprasadhs/followers",
"following_url": "https://api.github.com/users/sachinprasadhs/following{/other_user}",
"gists_url": "https://api.github.com/users/sachinprasadhs/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sachinprasadhs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sachinprasadhs/subscriptions",
"organizations_url": "https://api.github.com/users/sachinprasadhs/orgs",
"repos_url": "https://api.github.com/users/sachinprasadhs/repos",
"events_url": "https://api.github.com/users/sachinprasadhs/events{/privacy}",
"received_events_url": "https://api.github.com/users/sachinprasadhs/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@gaikwadrahul8 \r\nI was able to reproduce the issue on Colab using TF v2.11. Please find the gist [here](https://colab.research.google.com/gist/tiruk007/b093f4f3040b6544b918eb96d7467f65/untitled143.ipynb) for reference.\r\n\r\nThank you !",
"Hi, @sayakpaul \r\n\r\nApologize for the delay and I was able to replicate the issue without any error and it seems like working fine, for your reference I have added [gist-file](https://colab.research.google.com/gist/gaikwadrahul8/fa9a06032616a72a7fb6551acb3e9d5e/-59818.ipynb) and I have replaced `jit_compile=True` to either` tf.config.optimizer.set_jit(True)` or `tf.config.optimizer.set_jit('autoclustering')` as shown in gist file and you can refer official documentation [Ref-1](https://www.tensorflow.org/api_docs/python/tf/config/optimizer/set_jit), [Ref-2](https://www.tensorflow.org/xla#auto-clustering) and [stack-overflow answer](https://stackoverflow.com/questions/68920744/in-tensorflow-1-15-whats-the-difference-of-using-explicit-xla-compilation-and)\r\n\r\nIf issue still persists please let us know ? or Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you!",
"Not even related @gaikwadrahul8. The examples you referenced refer to training, whereas my issue is related to XLA-compiling an off-the-shelf function (in this case which involves a model). \r\n\r\n> tf.config.optimizer.set_jit(True) or tf.config.optimizer.set_jit('autoclustering')\r\n\r\nThese two are applied when there's XLA compilation involved in the optimization process, but that is not the case here. ",
"Hi, @SuryanarayanaY \r\n\r\nCould you please look into this issue ? Thank you!"
] | 2023-02-27T05:43:50 | 2023-05-16T18:21:29 | null | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Bug
### Have you reproduced the bug with TF nightly?
Yes
### Source
binary
### Tensorflow Version
2.10.0
### Custom Code
Yes
### OS Platform and Distribution
Colab
### 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
A100 40 GB
### Current Behaviour?
```shell
I have the following function.
First, I initialize a CLIP-based text encoder:
from keras_cv.models.stable_diffusion.text_encoder import TextEncoder
MAX_PROMPT_LENGTH = 77
text_encoder = TextEncoder(MAX_PROMPT_LENGTH)
Then, I am using the `text_encoder` like so in a function that I use to serialize the `text_encoder` as a `SavedModel`:
```python
from keras_cv.models.stable_diffusion.constants import _UNCONDITIONAL_TOKENS
import tensorflow as tf
signature_dict = {
"tokens": tf.TensorSpec(shape=[None, 77], dtype=tf.int32, name="tokens"),
}
def text_encoder_exporter(model: tf.keras.Model):
BATCH_SIZE = 3
MAX_PROMPT_LENGTH = 77
POS_IDS = tf.convert_to_tensor([list(range(MAX_PROMPT_LENGTH))], dtype=tf.int32)
UNCONDITIONAL_TOKENS = tf.convert_to_tensor([_UNCONDITIONAL_TOKENS], dtype=tf.int32)
@tf.function(input_signature=[signature_dict])
def serving_fn(inputs):
# context
encoded_text = model([inputs["tokens"], POS_IDS], training=False)
encoded_text = tf.squeeze(encoded_text)
if tf.rank(encoded_text) == 2:
encoded_text = tf.repeat(
tf.expand_dims(encoded_text, axis=0), BATCH_SIZE, axis=0
)
# unconditional context
unconditional_context = model([UNCONDITIONAL_TOKENS, POS_IDS], training=False)
unconditional_context = tf.repeat(unconditional_context, BATCH_SIZE, axis=0)
return {"context": encoded_text, "unconditional_context": unconditional_context}
return serving_fn
```
Serialization:
```python
tf.saved_model.save(
text_encoder,
"./text_encoder/1/",
signatures={"serving_default": text_encoder_exporter(text_encoder)},
)
```
Now, while attempting to XLA-compile:
```python
from tensorflow.python.saved_model import tag_constants
batch_size = 3
saved_model_loaded = tf.saved_model.load(
"./text_encoder/1/", tags=[tag_constants.SERVING]
)
text_encoder_predict_fn = saved_model_loaded.signatures["serving_default"]
# Raises error
xla_text_encoder_predict_fn = tf.function(text_encoder_predict_fn, jit_compile=True)
xla_text_encoder_predict_fn(
tokens=tf.ones((batch_size, MAX_PROMPT_LENGTH), tf.int32)
).keys()
```
```
### Standalone code to reproduce the issue
```shell
https://colab.research.google.com/gist/sayakpaul/d7dafc252752a6c1ce10e85d8162b8ea/scratchpad.ipynb
```
### Relevant log output
```shell
/usr/local/lib/python3.8/dist-packages/tensorflow/python/util/traceback_utils.py in error_handler(*args, **kwargs)
151 except Exception as e:
152 filtered_tb = _process_traceback_frames(e.__traceback__)
--> 153 raise e.with_traceback(filtered_tb) from None
154 finally:
155 del filtered_tb
/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
50 try:
51 ctx.ensure_initialized()
---> 52 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
53 inputs, attrs, num_outputs)
54 except core._NotOkStatusException as e:
InvalidArgumentError: left_branch_shape.rank() != right_branch_shape.rank() (4 vs 3)
[[{{function_node __inference_serving_fn_55983}}{{node cond}}]] [Op:__inference_function_60000]
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59818/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59818/timeline | null | null | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59817 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59817/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59817/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59817/events | https://github.com/tensorflow/tensorflow/issues/59817 | 1,600,243,047 | I_kwDOArmXAs5fYcVn | 59,817 | Failing to run hexagon delegates on android | {
"login": "EnariSaarBolt",
"id": 109066058,
"node_id": "U_kgDOBoA3Sg",
"avatar_url": "https://avatars.githubusercontent.com/u/109066058?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EnariSaarBolt",
"html_url": "https://github.com/EnariSaarBolt",
"followers_url": "https://api.github.com/users/EnariSaarBolt/followers",
"following_url": "https://api.github.com/users/EnariSaarBolt/following{/other_user}",
"gists_url": "https://api.github.com/users/EnariSaarBolt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/EnariSaarBolt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EnariSaarBolt/subscriptions",
"organizations_url": "https://api.github.com/users/EnariSaarBolt/orgs",
"repos_url": "https://api.github.com/users/EnariSaarBolt/repos",
"events_url": "https://api.github.com/users/EnariSaarBolt/events{/privacy}",
"received_events_url": "https://api.github.com/users/EnariSaarBolt/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 2888762627,
"node_id": "MDU6TGFiZWwyODg4NzYyNjI3",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TFLiteHexagonDelegate",
"name": "TFLiteHexagonDelegate",
"color": "72ECFE",
"default": false,
"description": ""
},
{
"id": 4511033337,
"node_id": "LA_kwDOArmXAs8AAAABDODn-Q",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10",
"name": "TF 2.10",
"color": "C15088",
"default": false,
"description": ""
}
] | closed | false | {
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "pjpratik",
"id": 118897289,
"node_id": "U_kgDOBxY6iQ",
"avatar_url": "https://avatars.githubusercontent.com/u/118897289?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pjpratik",
"html_url": "https://github.com/pjpratik",
"followers_url": "https://api.github.com/users/pjpratik/followers",
"following_url": "https://api.github.com/users/pjpratik/following{/other_user}",
"gists_url": "https://api.github.com/users/pjpratik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pjpratik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pjpratik/subscriptions",
"organizations_url": "https://api.github.com/users/pjpratik/orgs",
"repos_url": "https://api.github.com/users/pjpratik/repos",
"events_url": "https://api.github.com/users/pjpratik/events{/privacy}",
"received_events_url": "https://api.github.com/users/pjpratik/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @EnariSaarBolt \r\nPlease provide the version of `libhexagon_nn_skel` and kindly refer to this similar issue [here](https://github.com/tensorflow/tensorflow/issues/39539). Also refer to the note below mentioned in [TensorFlow Lite Hexagon delegate](https://www.tensorflow.org/lite/android/delegates/hexagon) and let us know if it helps.\r\n > Note: You must use the hexagon_nn libraries with the compatible version of interface library. Interface library is part of the AAR and fetched by bazel through the [config](https://github.com/tensorflow/tensorflow/blob/master/third_party/hexagon/workspace.bzl) The version in the bazel config is the version you should use.\r\n\r\nThank you!",
"The version of libhexagon_nn_skel is v1.20.0.1.",
"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/59817\">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/59817\">No</a>\n",
"> Hi @EnariSaarBolt Please provide the version of `libhexagon_nn_skel` and kindly refer to this similar issue [here](https://github.com/tensorflow/tensorflow/issues/39539). Also refer to the note below mentioned in [TensorFlow Lite Hexagon delegate](https://www.tensorflow.org/lite/android/delegates/hexagon) and let us know if it helps.\r\n> \r\n> > Note: You must use the hexagon_nn libraries with the compatible version of interface library. Interface library is part of the AAR and fetched by bazel through the [config](https://github.com/tensorflow/tensorflow/blob/master/third_party/hexagon/workspace.bzl) The version in the bazel config is the version you should use.\r\n> \r\n> Thank you!\r\n\r\nDo i understand correctly that the [config](https://github.com/tensorflow/tensorflow/blob/master/third_party/hexagon/workspace.bzl) has to match with the nn_skel version. So if i pick tensorflow version v2.5 i should be compatible with interface and nn_hexagon?",
"Hi @EnariSaarBolt \r\n\r\nAs the [config](https://github.com/tensorflow/tensorflow/blob/master/third_party/hexagon/workspace.bzl) is updated with v1.20.0.9, can you try with lib_interface v1.20.0.1 from [here](https://storage.googleapis.com/mirror.tensorflow.org/storage.cloud.google.com/download.tensorflow.org/tflite/hexagon_nn_headers_v1.20.0.1.tgz) and push the libhexagon_interface.so to match with your architecture by following this [instructions](https://www.tensorflow.org/lite/android/delegates/hexagon#add_the_shared_library_to_your_app).\r\n\r\nThanks!",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59817\">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/59817\">No</a>\n",
"`I/com.example.tfex: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:1154: remote_handle_open: Successfully opened handle 0x68c897b0 for adsp_current_process on domain 3\r\nE/com.example.tfex: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:1078: Error 0x80000414: remote_handle_invoke failed for handle 0x68c897b0, method 4 on domain 3 (sc 0x4010000)\r\nI/com.example.tfex: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/mod_table.c:677: open_mod_table_open_from_static: reverse module apps_std opened with handle 0xa493e088 (idx 0)\r\nW/om.example.tfex: type=1400 audit(0.0:73): avc: denied { read } for name=\"adsprpc-smd-secure\" dev=\"tmpfs\" ino=21501 scontext=u:r:untrusted_app:s0:c143,c256,c512,c768 tcontext=u:object_r:xdsp_device:s0 tclass=chr_file permissive=0 app=com.example.tfex\r\nW/com.example.tfex: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/apps_std_imp.c:750: Warning: apps_std_fopen_with_env failed with 0xd for libhexagon_nn_skel_v66.so (Permission denied)\r\nE/com.example.tfex: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:1143: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///libhexagon_nn_skel_v66.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror cannot open libhexagon_nn_skel_v66.so)\r\nE/com.example.tfex: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:1177: Error 0x80000406: remote_handle64_open failed for file:///libhexagon_nn_skel_v66.so?hexagon_nn_domains_skel_handle_invoke&_modver=1.0&_dom=cdsp\r\nW/tflite: Failed to fetch Hexagon NN version. This might be because you're using incompatible versions of libhexagon_interface and libhexagon_nn_skel. You must use compatible versions. Refer to Tensorflow Lite Hexagon Delegate Guide.\r\nI/tflite: Hexagon Delegate is not supported.\r\nI/BoltImage: No hexagon\r\nD/AndroidRuntime: Shutting down VM`\r\n\r\ntensorflow version is 2.11.0, hexagon version is 2.11.0 and hexagon nn skel is v20.0.1\r\n\r\nhexagon_skel files are in jniLibs/arm64-v8a folder"
] | 2023-02-26T23:26:45 | 2023-05-10T13:24:26 | 2023-03-18T01:58:15 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Support
### Have you reproduced the bug with TF nightly?
No
### Source
binary
### Tensorflow Version
2.10.0
### Custom Code
Yes
### OS Platform and Distribution
Windows 10
### Mobile device
QCS6125
### Python version
_No response_
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
Problem with hexagon delegates, the hexagon libs from hexagon delegates page are set into arm64-v8a folder.
>CPU architecture: 8
>adb shell getprop ro.board.platform
trinket
>adb shell getprop ro.product.device
trinket
```
### Standalone code to reproduce the issue
```shell
implementation 'org.tensorflow:tensorflow-lite:2.10.0'
implementation 'org.tensorflow:tensorflow-lite-hexagon:2.10.0'
Running tensorflow example from Quickstart for Android.
```
### Relevant log output
```shell
/tflite: Failed to fetch Hexagon NN version. This might be because you're using incompatible versions of libhexagon_interface and libhexagon_nn_skel. You must use compatible versions. Refer to Tensorflow Lite Hexagon Delegate Guide.
```
</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59817/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59817/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59816 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59816/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59816/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59816/events | https://github.com/tensorflow/tensorflow/pull/59816 | 1,600,178,586 | PR_kwDOArmXAs5Kx3Tj | 59,816 | Updated broken link for lib_task_api | {
"login": "gaikwadrahul8",
"id": 115997457,
"node_id": "U_kgDOBun7EQ",
"avatar_url": "https://avatars.githubusercontent.com/u/115997457?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gaikwadrahul8",
"html_url": "https://github.com/gaikwadrahul8",
"followers_url": "https://api.github.com/users/gaikwadrahul8/followers",
"following_url": "https://api.github.com/users/gaikwadrahul8/following{/other_user}",
"gists_url": "https://api.github.com/users/gaikwadrahul8/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gaikwadrahul8/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gaikwadrahul8/subscriptions",
"organizations_url": "https://api.github.com/users/gaikwadrahul8/orgs",
"repos_url": "https://api.github.com/users/gaikwadrahul8/repos",
"events_url": "https://api.github.com/users/gaikwadrahul8/events{/privacy}",
"received_events_url": "https://api.github.com/users/gaikwadrahul8/received_events",
"type": "User",
"site_admin": false
} | [
{
"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": 987666414,
"node_id": "MDU6TGFiZWw5ODc2NjY0MTQ=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/ready%20to%20pull",
"name": "ready to pull",
"color": "2cd643",
"default": false,
"description": "PR ready for merge process"
},
{
"id": 1169364259,
"node_id": "MDU6TGFiZWwxMTY5MzY0MjU5",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/size:XS",
"name": "size:XS",
"color": "adafea",
"default": false,
"description": "CL Change Size: Extra Small"
}
] | closed | false | {
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "gbaned",
"id": 48215717,
"node_id": "MDQ6VXNlcjQ4MjE1NzE3",
"avatar_url": "https://avatars.githubusercontent.com/u/48215717?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gbaned",
"html_url": "https://github.com/gbaned",
"followers_url": "https://api.github.com/users/gbaned/followers",
"following_url": "https://api.github.com/users/gbaned/following{/other_user}",
"gists_url": "https://api.github.com/users/gbaned/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gbaned/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gbaned/subscriptions",
"organizations_url": "https://api.github.com/users/gbaned/orgs",
"repos_url": "https://api.github.com/users/gbaned/repos",
"events_url": "https://api.github.com/users/gbaned/events{/privacy}",
"received_events_url": "https://api.github.com/users/gbaned/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"Hi @terryheo Can you please review this PR ? Thank you!",
"This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you."
] | 2023-02-26T19:50:47 | 2023-04-18T23:13:01 | 2023-04-18T17:21:59 | CONTRIBUTOR | null | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59816",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59816",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59816.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59816.patch",
"merged_at": "2023-04-18T17:21:59"
} | I have updated broken link for `lib_task_api `from `https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android/lib_task_api` to the working link `https://github.com/tensorflow/examples/tree/eb925e460f761f5ed643d17f0c449e040ac2ac45/lite/examples/object_detection/android/lib_task_api` so please do the needful. Thank you! | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59816/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59816/timeline | null | null | true |
https://api.github.com/repos/tensorflow/tensorflow/issues/59815 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59815/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59815/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59815/events | https://github.com/tensorflow/tensorflow/issues/59815 | 1,600,121,463 | I_kwDOArmXAs5fX-p3 | 59,815 | Recognize Flowers with TensorFlow Lite on Android Codelabs - step 4 error | {
"login": "milincheta",
"id": 7746595,
"node_id": "MDQ6VXNlcjc3NDY1OTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/7746595?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/milincheta",
"html_url": "https://github.com/milincheta",
"followers_url": "https://api.github.com/users/milincheta/followers",
"following_url": "https://api.github.com/users/milincheta/following{/other_user}",
"gists_url": "https://api.github.com/users/milincheta/gists{/gist_id}",
"starred_url": "https://api.github.com/users/milincheta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/milincheta/subscriptions",
"organizations_url": "https://api.github.com/users/milincheta/orgs",
"repos_url": "https://api.github.com/users/milincheta/repos",
"events_url": "https://api.github.com/users/milincheta/events{/privacy}",
"received_events_url": "https://api.github.com/users/milincheta/received_events",
"type": "User",
"site_admin": false
} | [
{
"id": 386191887,
"node_id": "MDU6TGFiZWwzODYxOTE4ODc=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response",
"name": "stat:awaiting response",
"color": "f4b400",
"default": false,
"description": "Status - Awaiting response from author"
},
{
"id": 473184161,
"node_id": "MDU6TGFiZWw0NzMxODQxNjE=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/type:support",
"name": "type:support",
"color": "159b2e",
"default": false,
"description": "Support issues"
},
{
"id": 474725938,
"node_id": "MDU6TGFiZWw0NzQ3MjU5Mzg=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/stale",
"name": "stale",
"color": "d4c5f9",
"default": false,
"description": "This label marks the issue/pr stale - to be closed automatically if no activity"
},
{
"id": 750616506,
"node_id": "MDU6TGFiZWw3NTA2MTY1MDY=",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite",
"name": "comp:lite",
"color": "0052cc",
"default": false,
"description": "TF Lite related issues"
},
{
"id": 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": 2689451671,
"node_id": "MDU6TGFiZWwyNjg5NDUxNjcx",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/comp:lite-examples",
"name": "comp:lite-examples",
"color": "06C2A1",
"default": false,
"description": "TensorFlow Lite Examples"
},
{
"id": 4989164230,
"node_id": "LA_kwDOArmXAs8AAAABKWCaxg",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/Android",
"name": "Android",
"color": "e99695",
"default": false,
"description": ""
}
] | closed | 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 | [
"@milincheta Thanks for reporting the issue.\r\n\r\nAs the error suggest, the Android SDK version 29 might be required for installation. \r\n\r\nHowever, as this is not a bug or feature request related to tensorflow, we encourage you to post it in stack overflow or forum.\r\n\r\nThanks.",
"@pjpratik I think its an error on the tutorial. Should be corrected/clarified?",
"@milincheta Could you please let us know which tutorial is being followed. Is it from [tensorflow.org](https://www.tensorflow.org/)? Thanks.",
"https://codelabs.developers.google.com/codelabs/recognize-flowers-with-tensorflow-on-android#0\r\nnot to mention that once you finish all the steps the whole thing doesn't work :(",
"Hi @milincheta Sorry for the delayed response.\r\n\r\nI have tried to reproduce the issue by using Android API 29 and I was able to successfully run the code on emulator.\r\n\r\nCan you please refer to this [#59094](https://github.com/tensorflow/tensorflow/issues/59094) issue on using Flower Classification on latest TF Nightly version and let us know if it helps.\r\n\r\nThank you.\r\n\r\n",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"@milincheta Perhaps\r\n Close Android Studio.\r\n Run it as Administrator. \r\nThen create a new project.\r\n Perhaps you had an error before the project was created and ignored it",
"@milincheta can I be assignee to solve this issue if it's not solved yet?",
"Hi @pranjalsrv123 , I cannot say who is assigned to fix an issue.\r\nIn my opinion is a deeper fundamental issue that, at the end, discourages people to get into coding.\r\nInstead of using your energy to solve your user's problem, you end using it to fix tools, to deal with libraries and versions, googling errors and dealing with tutorials that are wrong.\r\nIn my case I managed, after hours dealing with errors, to finish the tutorial. Of course didn't work.\r\nMy app is not doing what is supposed to be doing.\r\nHappy to help if you need.\r\nThanks",
"Hi @milincheta, sorry for the inconvenience caused.\r\n\r\nCan I know which Android API and SDK version you are using and did you following the [#TODO](https://codelabs.developers.google.com/codelabs/recognize-flowers-with-tensorflow-on-android#6) steps for recognition?\r\n\r\nThe issue is not reproducible at my end. Can you post the errors you have encountered during the process?\r\n\r\nThanks.",
"Hi @pjpratik \r\nAPI its: Pixel 2 API 30\r\nSDK Android 13 and 10 are installed\r\nbesides the error I mentioned on the first message, that now I managed to fix somehow.\r\nI did the #todo however on the code I downloaded some of them were already done...\r\nNow when testing on my mobile device I just see: Fake label and no recognition at all.\r\nBy the way I am using my own network that I trained to recognize fruits instead of flowers.",
"@pjpratik \r\nso, I noticed that the fake label was there...but couldn't find it on the code..so I checked and there are 2 projects....finish and start?\r\nI dont know if that is mentioned and I overlooked it, but anyways confusing.\r\nOne project is enough.\r\nAnyways, trying to run Final and I get:\r\nConflicting declarations: private final val flowerModel: FlowerModel, private final val flowerModel: FlowerModel\r\nConflicting declarations: private final val flowerModel: FlowerModel, private final val flowerModel: FlowerModel\r\n\r\nOverload resolution ambiguity: \r\nprivate final val flowerModel: FlowerModel defined in org.tensorflow.lite.examples.classification.MainActivity.ImageAnalyzer\r\nprivate final val flowerModel: FlowerModel defined in org.tensorflow.lite.examples.classification.MainActivity.ImageAnalyzer\r\n\r\nUnresolved reference. None of the following candidates is applicable because of receiver type mismatch: \r\npublic inline fun <T, R : Comparable<???>> Array<out ???>.sortByDescending(crossinline selector: (???) -> ???): Unit defined in kotlin.collections\r\npublic inline fun <T, R : Comparable<???>> MutableList<???>.sortByDescending(crossinline selector: (???) -> ???): Unit defined in kotlin.collections\r\n\r\nUnresolved reference: it",
"Hi @milincheta \r\n\r\nYou need to work on the `start` project and the #TODO have to be done in the `MainActivity.kt` of the start project.\r\n\r\nTo resolve the errors, please add the following lines in the `MainActivity.kt`\r\n```\r\nimport org.tensorflow.lite.examples.classification.ml.FlowerModel\r\nimport org.tensorflow.lite.support.image.TensorImage\r\n```\r\nand restart the activity\r\n\r\nPlease find the gist [here](https://gist.github.com/pjpratik/3381005e3ccabdc75bfd143804cc95fe) for the reference.\r\n\r\nYou should see something like this after restarting\r\n\r\n<img width=\"328\" alt=\"Screenshot 2023-03-23 at 5 23 02 PM\" src=\"https://user-images.githubusercontent.com/118897289/227199840-3895753e-c497-472d-8ba7-ec14e7e94f1f.png\">\r\n\r\nThanks.",
"@pranjalsrv123 I give up my friend...\r\nthose imports where already there.\r\nI copy and paste the code you linked and still get errors.\r\nI will go back to coding in 20 years when tools are more mature.\r\nThanks for your help!\r\n",
"@khanhlvg, Reaching out to you, since I see your name in the document commit history.\r\nDo you have any pointers on this?\r\n",
"@sachinprasadhs I can show you what the problem is.\r\nThanks!",
"@milincheta , Do you have any solution for it, if so, could you please go ahead and create a PR for same. Thank You",
"@sachinprasadhs I have no idea, that is why I create a ticket.\r\nHappy to have a call and show you.\r\nThanks!",
"Hi @milincheta,\r\n\r\nApologies for the frustration, I understand it can be quite frustrating running into errors that basically only computers understand. To help us help you, can you please verify some information about your environment. Specifically, you are using Pixel 2 API 30? Are you using a real phone or an emulator? In your project in Android studio do you know which SDK version you are using? (It says you have 10 and 13 installed). If you can export your Android Studio Project and upload it, it will help us see what is wrong with your project. If you have trouble getting the information from Android Studio, this is an excellent use case to try out [bard](https://bard.google.com/) ex: \"How do I find out which SDK I'm using in Android Studio?\" If you can give us this information, that will help us help you immensely.",
"Hi, thank you for your contact.\r\nI am using a physical device.\r\nPixel 2 API 30. SDK Android 13 and 10 are ticked on the SDK manager.\r\nIf you want to have a call I can show you more.\r\nThanks!",
"Hi @milincheta, apologies, there seems to be a separate issue w/ tflite-model-maker, as such I can't create the tflite model, Some options include, uploading your tflite model here or exporting your android studio project (with the tflite model included) here.",
"hi @pkgoogle \r\nhttps://drive.google.com/file/d/1SgTqOcSQKqcHh3Zu4AJHHHB9noCBrvYJ/view?usp=sharing",
"Hi @milincheta, I was able to successfully run the uploaded project on a Pixel 2 API 30 emulator w/o issue... What error are you running into at this point? As you are using a real device, have you updated the android system on your phone? Can you try using an emulator first and tell us how that goes?",
"hi, it runs...what it is not doing is use my model and detect anything.\r\ndoesn't work",
"Hi @milincheta, does the original model work?",
"it does on my jupyter notebook",
"@milincheta Does the original model work on your phone and does it seems to detect flowers reasonably? I just want to make sure it works without any changes, if it does then we know that the process of switching out your model is not complete (i.e. I think you said you changed your labels up there? there's probably some more work you have to do to connect everything properly)",
"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/59815\">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/59815\">No</a>\n"
] | 2023-02-26T16:44:57 | 2023-07-22T01:55:08 | 2023-07-22T01:55:06 | NONE | null | null | null | Just following the steps on a fresh installation of Android studio on ubuntu get the following error when trying to run: Could not find compile target android-29 for modules :start | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59815/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59815/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59814 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59814/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59814/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59814/events | https://github.com/tensorflow/tensorflow/issues/59814 | 1,600,075,448 | I_kwDOArmXAs5fXza4 | 59,814 | Tensorflow Import error | {
"login": "Rury04",
"id": 126400651,
"node_id": "U_kgDOB4i4iw",
"avatar_url": "https://avatars.githubusercontent.com/u/126400651?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Rury04",
"html_url": "https://github.com/Rury04",
"followers_url": "https://api.github.com/users/Rury04/followers",
"following_url": "https://api.github.com/users/Rury04/following{/other_user}",
"gists_url": "https://api.github.com/users/Rury04/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Rury04/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rury04/subscriptions",
"organizations_url": "https://api.github.com/users/Rury04/orgs",
"repos_url": "https://api.github.com/users/Rury04/repos",
"events_url": "https://api.github.com/users/Rury04/events{/privacy}",
"received_events_url": "https://api.github.com/users/Rury04/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": 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": 4511033337,
"node_id": "LA_kwDOArmXAs8AAAABDODn-Q",
"url": "https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.10",
"name": "TF 2.10",
"color": "C15088",
"default": false,
"description": ""
}
] | closed | false | {
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
} | [
{
"login": "tilakrayal",
"id": 81610181,
"node_id": "MDQ6VXNlcjgxNjEwMTgx",
"avatar_url": "https://avatars.githubusercontent.com/u/81610181?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tilakrayal",
"html_url": "https://github.com/tilakrayal",
"followers_url": "https://api.github.com/users/tilakrayal/followers",
"following_url": "https://api.github.com/users/tilakrayal/following{/other_user}",
"gists_url": "https://api.github.com/users/tilakrayal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tilakrayal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tilakrayal/subscriptions",
"organizations_url": "https://api.github.com/users/tilakrayal/orgs",
"repos_url": "https://api.github.com/users/tilakrayal/repos",
"events_url": "https://api.github.com/users/tilakrayal/events{/privacy}",
"received_events_url": "https://api.github.com/users/tilakrayal/received_events",
"type": "User",
"site_admin": false
}
] | null | [
"@Rury04,\r\nI suspect that you are trying to install the tensorflow on the windows machine. Then there is a high possibility for getting the above error because of the below reasons.\r\nThere are at least 3 possible scenarios:\r\n\r\n- You need to install the MSVC 2019 redistributable\r\n- Your CPU does not support AVX2 instructions\r\n- Your CPU/Python is on 32 bits\r\n- There is a library that is in a different location/not installed on your system that cannot be loaded.\r\n\r\nAny CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.\r\n\r\nApparently, your CPU model does not support AVX instruction sets. You can still use TensorFlow with the alternatives given below:\r\n\r\nTry Google Colab to use TensorFlow.\r\nThe easiest way to use TF will be to switch to google colab. You get pre-installed latest stable TF version. Also you can use pip install to install any other preferred TF version.\r\nIt has an added advantage since you can you easily switch to different hardware accelerators\r\n(cpu, gpu, tpu) as per the task.\r\nAll you need is a good internet connection and you are all set.\r\nor else try to build TF from sources by changing CPU optimization flags. Please try to follow the instructions to install the tensorflow. [Reference](https://www.tensorflow.org/install/source_windows). Thank you!",
"I am really grateful to your response. As you told me i checked the\nprocessor and it turns out to be \"Intel(R) Celeron(R) N4000 CPU @ 1.10GHz\n1.10 GHz\". Since it's not my own PC i didnt checked out the specs. Besides\nim installing the latest MSVC version: 2022, is it a problem? Although i\nthink tensorflow is correctly installed, because i can import it and use it\nnormally when i am using another python interpreter such as Python 3.9, the\nonly issue is that i cannot import it in Jupyter. There is no problem with\nthe environment so it's kinda weird. I also checked several tutorials for\nthis kind of problem but they were not helpful. In conclusion I will try to\nchange to Google colab instead. Thank you again for your comprehension, i\nreally appreciate it.\nHave a nice day\n\nIl giorno lun 27 feb 2023 alle ore 11:59 tilakrayal <\n***@***.***> ha scritto:\n\n> @Rury04 <https://github.com/Rury04>,\n> I suspect that you are trying to install the tensorflow on the windows\n> machine. Then there is a high possibility for getting the above error\n> because of the below reasons.\n> There are at least 3 possible scenarios:\n>\n> - You need to install the MSVC 2019 redistributable\n> - Your CPU does not support AVX2 instructions\n> - Your CPU/Python is on 32 bits\n> - There is a library that is in a different location/not installed on\n> your system that cannot be loaded.\n>\n> Any CPU that does not have these instruction sets, either CPU or GPU\n> version of TF will fail to load.\n>\n> Apparently, your CPU model does not support AVX instruction sets. You can\n> still use TensorFlow with the alternatives given below:\n>\n> Try Google Colab to use TensorFlow.\n> The easiest way to use TF will be to switch to google colab. You get\n> pre-installed latest stable TF version. Also you can use pip install to\n> install any other preferred TF version.\n> It has an added advantage since you can you easily switch to different\n> hardware accelerators\n> (cpu, gpu, tpu) as per the task.\n> All you need is a good internet connection and you are all set.\n> or else try to build TF from sources by changing CPU optimization flags.\n> Please try to follow the instructions to install the tensorflow. Reference\n> <https://www.tensorflow.org/install/source_windows>. Thank you!\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/59814#issuecomment-1446115445>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/A6ELRCY3PIGOQU23A7GKRATWZSCINANCNFSM6AAAAAAVIPXF4M>\n> .\n> You are receiving this because you were mentioned.Message ID:\n> ***@***.***>\n>\n",
"@Rury04,\r\nTensorFlow is tested against Visual Studio 2019. So please try to install the MSVC 2019 redistributable. \r\nInstall the Visual C++ build tools 2019. This comes with Visual Studio 2019 but can be installed separately:\r\n\r\n- Please try to go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/),\r\n- Select Redistributables and Build Tools,\r\n\r\nDownload and install:\r\n- Microsoft Visual C++ 2019 Redistributable\r\n- Microsoft Build Tools 2019\r\n\r\nKindly please take a look at the official doc [link](https://www.tensorflow.org/install/source_windows#install_visual_c_build_tools_2019) for the reference. Thank you!",
"Good morning\nI apologize for my delay but I had exams these days so I couldn't give you\na proper response. Still I feel so bad about it.\nAnyway, I tried what you suggested to me and I came up with one question. I\nlooked for the visual studio and I found out that I have a lot of older\nversions of Visual studio C++ Redistributable, do i need them or should I\njust ignore them and try installing the version you asked me to. I\nappreciate a lot your help and wish you an excellent day\nKind regards\n\nIl Mer 1 Mar 2023, 10:16 tilakrayal ***@***.***> ha scritto:\n\n> @Rury04 <https://github.com/Rury04>,\n> TensorFlow is tested against Visual Studio 2019. So please try to install\n> the MSVC 2019 redistributable.\n> Install the Visual C++ build tools 2019. This comes with Visual Studio\n> 2019 but can be installed separately:\n>\n> - Please try to go to the Visual Studio downloads\n> <https://visualstudio.microsoft.com/downloads/>,\n> - Select Redistributables and Build Tools,\n>\n> Download and install:\n>\n> - Microsoft Visual C++ 2019 Redistributable\n> - Microsoft Build Tools 2019\n>\n> Kindly please take a look at the official doc link\n> <https://www.tensorflow.org/install/source_windows#install_visual_c_build_tools_2019>\n> for the reference. Thank you!\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/59814#issuecomment-1449655529>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/A6ELRCY76XN47IJK7HSBYCTWZ4HWXANCNFSM6AAAAAAVIPXF4M>\n> .\n> You are receiving this because you were mentioned.Message ID:\n> ***@***.***>\n>\n",
"@Rury04,\r\nYeah, please try to uninstall the older versions and install with the mentioned requirements & try to follow the instructions mentioned on the tensorflow official doc which helps to install in the smoother way.\r\nhttps://www.tensorflow.org/install/source_windows\r\n\r\n- Please try to go to the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/),\r\n- Select Redistributables and Build Tools,\r\n\r\nDownload and install:\r\n\r\n- Microsoft Visual C++ 2019 Redistributable\r\n- Microsoft Build Tools 2019\r\n\r\nKindly please take a look at the official doc [link](https://www.tensorflow.org/install/source_windows#install_visual_c_build_tools_2019) for the reference. Thank you!\r\n",
"Hi, I have tried the solutions you suggested me to do but apparently its\nnot working. The version Microsoft Visual C++ 2019 Redistributable is\nalready installed, same thing is for the build tools. I have a question:\nI've checked my specs and it turns out that my cpu is a Intel Celeron and\nit seems not compatible, should I just install the gpu version with cuda\nand cudnn or should i continue on Colab? I tried the second option and i\ncant open tensorboard.\nI really appreciate yout support and hope you a good day.\n\nIl giorno mar 7 mar 2023 alle ore 08:22 tilakrayal ***@***.***>\nha scritto:\n\n> @Rury04 <https://github.com/Rury04>,\n> Yeah, please try to uninstall the older versions and install with the\n> mentioned requirements & try to follow the instructions mentioned on the\n> tensorflow official doc which helps to install in the smoother way.\n> https://www.tensorflow.org/install/source_windows\n>\n> - Please try to go to the Visual Studio downloads\n> <https://visualstudio.microsoft.com/downloads/>,\n> - Select Redistributables and Build Tools,\n>\n> Download and install:\n>\n> - Microsoft Visual C++ 2019 Redistributable\n> - Microsoft Build Tools 2019\n>\n> Kindly please take a look at the official doc link\n> <https://www.tensorflow.org/install/source_windows#install_visual_c_build_tools_2019>\n> for the reference. Thank you!\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/59814#issuecomment-1457677029>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/A6ELRCYQIHO3XPFGBZ3IGDDW23O4DANCNFSM6AAAAAAVIPXF4M>\n> .\n> You are receiving this because you were mentioned.Message ID:\n> ***@***.***>\n>\n",
"@Rury04,\r\nCould you please confirm whether you are trying to install the tensorflow DirectML plugin or trying to install from the official tensorflow.org? and also provide the complete error log for the analysis. Thank you!",
"I am sorry for the misunderstanding but the issue raises up whenever I try\nto import the package, because it is properly installed (I verified it\nusing another Interpreter). By the way I've installed it from Anaconda\nprompt like usually install the other packages. The Error log file is right\nbelow and it is the same I posted In the GitHub page. Thank you as always\nfor your concerns and hope u a great day\n\nIl Gio 16 Mar 2023, 14:41 tilakrayal ***@***.***> ha scritto:\n\n> @Rury04 <https://github.com/Rury04>,\n> Could you please confirm whether you are trying to install the tensorflow\n> DirectML plugin or trying to install from the official tensorflow.org?\n> and also provide the complete error log for the analysis. Thank you!\n>\n> —\n> Reply to this email directly, view it on GitHub\n> <https://github.com/tensorflow/tensorflow/issues/59814#issuecomment-1471974389>,\n> or unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/A6ELRC2W2GSKEG6COBA7FBTW4MKA3ANCNFSM6AAAAAAVIPXF4M>\n> .\n> You are receiving this because you were mentioned.Message ID:\n> ***@***.***>\n>\n",
"@Rury04,\r\nI try to install the **tensorflow v2.10** on the Windows environment by following the steps which are available on the official document and it was installed and importing the tensorflow was also successful.\r\nhttps://www.tensorflow.org/install/pip\r\n\r\nI request you, to follow the instructions which are mentioned in the document and try to create the new virtual environment.\r\nScreen shot for the reference.\r\n\r\n![Screenshot 2023-03-23 3 24 06 PM](https://user-images.githubusercontent.com/81610181/227167233-cc705150-535b-4b72-b7de-2c284c363ac6.png)\r\n\r\nAlso make sure you are not trying to install tensorflow v2.11. `TensorFlow 2.10` was the last TensorFlow release that supported **GPU** on native-Windows. Starting with TensorFlow 2.11, you will need to install [TensorFlow in WSL2](https://tensorflow.org/install/pip#windows-%5Bwsl2%5D), or **install tensorflow-cpu** and, optionally, try the [TensorFlow-DirectML-Plugin](https://github.com/microsoft/tensorflow-directml-plugin#tensorflow-directml-plugin-)\r\n",
"This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.",
"This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.",
"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59814\">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/59814\">No</a>\n"
] | 2023-02-26T14:21:20 | 2023-04-08T01:50:14 | 2023-04-08T01:50:12 | NONE | null | null | null | <details><summary>Click to expand!</summary>
### Issue Type
Support
### Have you reproduced the bug with TF nightly?
Yes
### Source
source
### Tensorflow Version
2.10
### Custom Code
Yes
### OS Platform and Distribution
_No response_
### Mobile device
_No response_
### Python version
3.9
### Bazel version
_No response_
### GCC/Compiler version
_No response_
### CUDA/cuDNN version
_No response_
### GPU model and memory
_No response_
### Current Behaviour?
```shell
I cannot import the tensorflow package in my jupyter notebook. I have checked the installations in conda and pip, but everything seems to work. So whenever i try to import it i get the following error:
"ImportError: Traceback (most recent call last):
File "C:\Users\Rury\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 62, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed."
Is it a problem of the environment or a problem with package itself?
I am starting now to study DL so i would appreciate a lot a quick response. Thank you
```
### Standalone code to reproduce the issue
```shell
import tensorflow as tf
```
### Relevant log output
_No response_</details> | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59814/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59814/timeline | null | completed | false |
https://api.github.com/repos/tensorflow/tensorflow/issues/59813 | https://api.github.com/repos/tensorflow/tensorflow | https://api.github.com/repos/tensorflow/tensorflow/issues/59813/labels{/name} | https://api.github.com/repos/tensorflow/tensorflow/issues/59813/comments | https://api.github.com/repos/tensorflow/tensorflow/issues/59813/events | https://github.com/tensorflow/tensorflow/pull/59813 | 1,600,036,272 | PR_kwDOArmXAs5KxbpE | 59,813 | Create LSTMBlockcell | {
"login": "akshayamadhuri",
"id": 76612327,
"node_id": "MDQ6VXNlcjc2NjEyMzI3",
"avatar_url": "https://avatars.githubusercontent.com/u/76612327?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akshayamadhuri",
"html_url": "https://github.com/akshayamadhuri",
"followers_url": "https://api.github.com/users/akshayamadhuri/followers",
"following_url": "https://api.github.com/users/akshayamadhuri/following{/other_user}",
"gists_url": "https://api.github.com/users/akshayamadhuri/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akshayamadhuri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akshayamadhuri/subscriptions",
"organizations_url": "https://api.github.com/users/akshayamadhuri/orgs",
"repos_url": "https://api.github.com/users/akshayamadhuri/repos",
"events_url": "https://api.github.com/users/akshayamadhuri/events{/privacy}",
"received_events_url": "https://api.github.com/users/akshayamadhuri/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 | [] | 2023-02-26T12:12:54 | 2023-02-26T15:32:04 | 2023-02-26T15:32:04 | NONE | spam | false | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/pulls/59813",
"html_url": "https://github.com/tensorflow/tensorflow/pull/59813",
"diff_url": "https://github.com/tensorflow/tensorflow/pull/59813.diff",
"patch_url": "https://github.com/tensorflow/tensorflow/pull/59813.patch",
"merged_at": null
} | null | {
"url": "https://api.github.com/repos/tensorflow/tensorflow/issues/59813/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/tensorflow/tensorflow/issues/59813/timeline | null | null | true |