[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conv3D Operation Error on Windows platform #63860

Open
AGFACBNNR opened this issue Mar 18, 2024 · 2 comments
Open

Conv3D Operation Error on Windows platform #63860

AGFACBNNR opened this issue Mar 18, 2024 · 2 comments
Assignees
Labels
subtype:cpu-intel To track windows cpu issues TF 2.15 For issues related to 2.15.x type:bug Bug

Comments

@AGFACBNNR
Copy link

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf-2.15.0, tf-2.16.0, tf-2.16.1

Custom code

Yes

OS platform and distribution

Windows 10

Mobile device

No response

Python version

3.9

Bazel version

No response

GCC/compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

I found an output shape inconsistent in Conv3D layer:

from tensorflow.keras.layers import Conv3D
import numpy as np

x=np.random.rand(3,5,5,5,4)
l=Conv3D(5,[2,2,3],[1,1,1],'valid','channels_first',[2,2,2],1)
print(l(x).shape)
print(l.compute_output_shape(x.shape))

The output is:

(3, 5, 5, 5, 4)
(3, 5, 3, 3, 0)

However, I failed to reproduce it on google colab. After checking the package and re-running it on a Linux machine and another Windows machine, I found this bug may come from the package 'tensorflow-intel', which exists only on Windows platform.

Could you please check it?

Standalone code to reproduce the issue

from tensorflow.keras.layers import Conv3D
import numpy as np

x=np.random.rand(3,5,5,5,4)
l=Conv3D(5,[2,2,3],[1,1,1],'valid','channels_first',[2,2,2],1)
print(l(x).shape)
print(l.compute_output_shape(x.shape))


### Relevant log output

```shell
(3, 5, 5, 5, 4)
(3, 5, 3, 3, 0)
@google-ml-butler google-ml-butler bot added the type:bug Bug label Mar 18, 2024
@SuryanarayanaY SuryanarayanaY added TF 2.15 For issues related to 2.15.x subtype:cpu-intel To track windows cpu issues labels Mar 19, 2024
@SuryanarayanaY
Copy link
Collaborator

Hi @AGFACBNNR ,

Is this issue is specific for Windows OS? I have tested on colab(Linux) with TF package and tensorflow-intel package which are working fine as per attached gist.

@AGFACBNNR
Copy link
Author
AGFACBNNR commented Mar 19, 2024

Yes, I can only reproduce it on Windows OS.
I also found that this issue cannot be reproduced on colab, which confused me for a whole day. Therefore, I tested it on another Winodws OS machine and a Linux OS machine and checked the difference in package lists. Finally I guess the reason is hidden in tensorflow-intel>=2.15.0, which can not be installed on colab.

Sorry for missing the version info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtype:cpu-intel To track windows cpu issues TF 2.15 For issues related to 2.15.x type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants