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

tensorlayerx.nn.layers.deprecated.NonExistingLayerError: SequentialLayer(layer) --> Sequential(layer)(in) #244

Open
wajoud opened this issue Apr 26, 2022 · 2 comments

Comments

@wajoud
Copy link

wajoud commented Apr 26, 2022

Using TensorFlow backend.
2022-04-26 18:53:56.612121: 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: SSE4.1 SSE4.2 AVX AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-04-26 18:53:56.616458: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
Traceback (most recent call last):
File "/home/wajoud/srgan/train.py", line 105, in
G = SRGAN_g()
File "/home/wajoud/srgan/srgan.py", line 34, in init
self.residual_block = self.make_layer()
File "/home/wajoud/srgan/srgan.py", line 46, in make_layer
return SequentialLayer(layer_list)
File "/home/wajoud/anaconda3/envs/srgan/lib/python3.9/site-packages/tensorlayerx/nn/layers/deprecated.py", line 451, in SequentialLayer
raise NonExistingLayerError("SequentialLayer(layer) --> Sequential(layer)(in)" + log)
tensorlayerx.nn.layers.deprecated.NonExistingLayerError: SequentialLayer(layer) --> Sequential(layer)(in)
Hint: 1) downgrade TL from version TensorLayerX to TensorLayer2.x. 2) check the documentation of TF version 2.x and TL version X

facing this issue can someone help me out !! thank you

@hanjr92
Copy link
Member

hanjr92 commented Apr 29, 2022

Sorry too late to reply you! I will update my code and fix this bug. @wajoud

@hanjr92
Copy link
Member

hanjr92 commented Apr 29, 2022

I have updated codes. Now, you can run this script under TensorLayerX. If you like this project, please support it and star it : ). @wajoud

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

2 participants