A
A
Albert2018-10-30 20:19:20
Python
Albert, 2018-10-30 20:19:20

Google colab + Tensorflow: how to fix No module 'layers' error?

How to fix the error?

import tensorflow as tf
from layers import (_causal_linear, _output_linear, conv1d, dilated_conv1d)

Writes no module layers.
As far as I understand, layers is something like tf.layers Run
Google colab in an empty project, python3 GPU
Code source: https://raw.githubusercontent.com/tomlepaine/fast-...
(3rd and 4th lines)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2018-10-31
@bigburn

https://programtalk.com/vs2/python/13192/fast-wave...
In the original (?) example, next to models.py is layers.py, in which all these layers are defined.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question