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

Error when creating TCN with default settings [Linux] #267

Open
beck-weber-ing opened this issue Oct 4, 2024 · 6 comments
Open

Error when creating TCN with default settings [Linux] #267

beck-weber-ing opened this issue Oct 4, 2024 · 6 comments

Comments

@beck-weber-ing
Copy link

beck-weber-ing commented Oct 4, 2024

Could not use anymore because of this:

Traceback (most recent call last):
  File "/workspace/xyz/train.py", line 85, in <module>
    x = TCN(
  File "/home/xyz/.local/lib/python3.9/site-packages/keras/src/utils/traceback_utils.py", line 122, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "/home/xyz/.local/lib/python3.9/site-packages/tcn/tcn.py", line 316, in build
    self.slicer_layer.build(self.build_output_shape.as_list())
AttributeError: 'tuple' object has no attribute 'as_list'

Was fixed by:

316c316
<         self.slicer_layer.build(self.build_output_shape.as_list())
---
>         self.slicer_layer.build(list(self.build_output_shape))

EDIT: Host and container are Linux systems.

@thegreatesthoneybee
Copy link

What version of tensorflow are you using?
I'm using tensorflow version 2.16.2 with keras-tcn on windows 11, which is the latest version that works.

@beck-weber-ing
Copy link
Author

I am using the 2.17 version that comes with the official tensorflow:latest-gpu docker container.

@philipperemy
Copy link
Owner

Same I don't have this problem with tensorflow 2.17 on Linux.

@thegreatesthoneybee
Copy link

I don;t have this problem al with tensorflow 2.17 on Apple M1 Ul;tra and M2 Pro. Only on windows.

@philipperemy philipperemy changed the title Error when creating TCN with default settings Error when creating TCN with default settings [Windows] Oct 24, 2024
@beck-weber-ing beck-weber-ing changed the title Error when creating TCN with default settings [Windows] Error when creating TCN with default settings [Linux] Oct 28, 2024
@beck-weber-ing
Copy link
Author

Same I don't have this problem with tensorflow 2.17 on Linux.

Which Python version are you using?

@philipperemy
Copy link
Owner

philipperemy commented Oct 30, 2024

@beck-weber-ing try to use python 3.9 or 3.10. Other versions should work as well. But just to be sure. At least 3.9 and 3.10 were heavily tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants