Code Monkey home page Code Monkey logo

Comments (7)

markub3327 avatar markub3327 commented on April 27, 2024 1

@Venkat6871

The same issue:
scaled_loss = self.optimizer.get_scaled_loss(loss)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'LossScaleOptimizer' object has no attribute 'get_scaled_loss'

But it's here defined: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/mixed_precision/loss_scale_optimizer.py#L524

from tensorflow.

Venkat6871 avatar Venkat6871 commented on April 27, 2024

Hi @keisen ,

I tried to run your code on colab using TF v2.15, 2.16 and nightly versions, and faced the same issue. Please find the gist here for reference.

Thank you!

from tensorflow.

keisen avatar keisen commented on April 27, 2024

Hi @Venkat6871

Thank you for reproducing this issue. I believe it's the same as I faced.
My OSS library has been using this API, so I want your team to fix it asap...
When do you expect it to be fixed?

Thanks!

from tensorflow.

keisen avatar keisen commented on April 27, 2024

Hi @Venkat6871
Is there any progress?

from tensorflow.

markub3327 avatar markub3327 commented on April 27, 2024

@keisen @Venkat6871
Please look at this solution:
keras-team/keras#19479

from tensorflow.

keisen avatar keisen commented on April 27, 2024

@markub3327

Thank you so much for letting us know that!
I'll close this issue 👍

Thanks!

from tensorflow.

google-ml-butler avatar google-ml-butler commented on April 27, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tensorflow.

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.