(Tensorflow version is 1.8)
Error Message contains : "lstm/lstm_cell/recurrent_kernel/Initializer/random_normal"
It means that it needs initailizers
Initializations define the way to set the initial random weights of Keras layers
The keyword arguments used for passing initializers to layers will depend on the layer. Usually it is simply kernel_initializer
and bias_initializer
:
model.add(Dense(64,
kernel_initializer='random_uniform',
bias_initializer='zeros'))
- from: https://keras.io/initializers
In tensorflow
model.add(Dense(32, activation='relu', kernel_initializer='random_uniform')) <- it works
Add kernel initializer to solve the error
(but when there is no bias_initializer, it works well, I think it is defined as default.)
반응형
'IT > machine learning' 카테고리의 다른 글
2024년 무료 OCR 모델 추천 및 비교: 최신 OCR 기술의 장점과 특징 (2) | 2024.10.25 |
---|---|
Use Tensorboard on Jupyter Notebook without CLI (0) | 2019.01.23 |
[pytorch] difference between torch.Tensor and torch.LongTensor (0) | 2018.07.06 |
Calculate Convolutional Layer Output size (0) | 2018.07.05 |
gcp 에서 jupyter notebook 실행 (0) | 2018.02.23 |