Giter Club home page Giter Club logo

Comments (7)

Delicious-Bitter-Melon avatar Delicious-Bitter-Melon commented on July 19, 2024

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.

Delicious-Bitter-Melon avatar Delicious-Bitter-Melon commented on July 19, 2024

when I use tf.keras instead of keras,this problem don't happen.

from keras-radam.

Mehmet5353 avatar Mehmet5353 commented on July 19, 2024

You have to import everthing in paralel sense like

from keras-radam.

Mehmet5353 avatar Mehmet5353 commented on July 19, 2024

Anybody have proble i can explian to him

from keras-radam.

skwolvie avatar skwolvie commented on July 19, 2024

Same problem

from keras-radam.

arunkumar1605 avatar arunkumar1605 commented on July 19, 2024

@Mehmet5353 i'm facing same issue.

optimizer=tf.keras.optimizers.Adam(learning_rate* hvd.size())
opt = hvd.DistributedOptimizer(optimizer)

from keras-radam.

neda60 avatar neda60 commented on July 19, 2024

Anybody have proble i can explian to him

I have same issue too!

from keras-radam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.