Comments (7)
AttributeError Traceback (most recent call last)
in
/opt/conda/lib/python3.6/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs)
89 warnings.warn('Update your ' + object_name + '
call to the ' +
90 'Keras 2 API: ' + signature, stacklevel=2)
---> 91 return func(*args, **kwargs)
92 wrapper._original_function = func
93 return wrapper
/opt/conda/lib/python3.6/site-packages/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch)
1730 use_multiprocessing=use_multiprocessing,
1731 shuffle=shuffle,
-> 1732 initial_epoch=initial_epoch)
1733
1734 @interfaces.legacy_generator_methods_support
/opt/conda/lib/python3.6/site-packages/keras/engine/training_generator.py in fit_generator(model, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch)
258 break
259
--> 260 callbacks.on_epoch_end(epoch, epoch_logs)
261 epoch += 1
262 if callbacks.model.stop_training:
/opt/conda/lib/python3.6/site-packages/keras/callbacks/callbacks.py in on_epoch_end(self, epoch, logs)
150 logs = logs or {}
151 for callback in self.callbacks:
--> 152 callback.on_epoch_end(epoch, logs)
153
154 def on_train_batch_begin(self, batch, logs=None):
/opt/conda/lib/python3.6/site-packages/keras/callbacks/callbacks.py in on_epoch_end(self, epoch, logs)
1034 def on_epoch_end(self, epoch, logs=None):
1035 logs = logs or {}
-> 1036 logs['lr'] = K.get_value(self.model.optimizer.lr)
1037 current = logs.get(self.monitor)
1038 if current is None:
/opt/conda/lib/python3.6/site-packages/keras/optimizers.py in lr(self)
159 def lr(self):
160 # Legacy support.
--> 161 return self.learning_rate
162
163
AttributeError: 'TFOptimizer' object has no attribute 'learning_rate'
from keras-radam.
when I use tf.keras instead of keras,this problem don't happen.
from keras-radam.
You have to import everthing in paralel sense like
from keras-radam.
Anybody have proble i can explian to him
from keras-radam.
Same problem
from keras-radam.
@Mehmet5353 i'm facing same issue.
optimizer=tf.keras.optimizers.Adam(learning_rate* hvd.size())
opt = hvd.DistributedOptimizer(optimizer)
from keras-radam.
Anybody have proble i can explian to him
I have same issue too!
from keras-radam.
Related Issues (20)
- not compatable with tf 1.8 , AttributeError: 'RAdamOptimizer' object has no attribute '_call_if_callable' HOT 6
- The keras backend support HOT 4
- ModuleNotFoundError: No module named 'tensorflow.python.keras.optimizer_v2' HOT 1
- epsilon not compatible with Adam HOT 1
- Could not interpret optimizer identifier HOT 3
- Issue about the dtype HOT 3
- Ranger Optimizer extension HOT 2
- amsgrad parameter HOT 3
- Maintenance HOT 1
- Generate First Release HOT 1
- TF.keras
- Very slow implementation HOT 1
- TypeError: Unexpected keyword argument passed to optimizer: lr HOT 1
- Any other parameter needed when warmup? HOT 1
- Warmup causes NAN HOT 1
- ValueError: An operation has `None` for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval. HOT 1
- How can i use radam in tf1.4? HOT 1
- No module name math_ops HOT 2
- ModuleNotFoundError: No module named 'keras.legacy' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-radam.