Giter Club home page Giter Club logo

Comments (5)

Tanishq-JM avatar Tanishq-JM commented on April 28, 2024

It looks like the issue is related to the use of the Lambda layer in your code. The error message suggests that there's a mix of tensors and non-tensors in a nested Lambda call, specifically related to the mask argument.

The error might be occurring because the Lambda layer is expecting a tensor for its mask argument, but it's receiving a list with None and a tensor instead. To resolve this, you can try modifying the Lambda layer to explicitly handle the mask argument. Here's an updated version of the Lambda layer that should resolve the issue:

attention_context = Lambda(lambda x: tf.einsum('ijk,ijl->ikl', x[0], x[1]), mask=lambda inputs, mask: mask[1])([attention_scores, se3])

In this modification, the mask argument is explicitly handled to pass the mask from the se3 input to the Lambda layer.

Please try this modification and see if it resolves the issue. If the error persists, there may be other issues in your code that need to be addressed.

from tensorflow.

sushreebarsa avatar sushreebarsa commented on April 28, 2024

@ShahidRRRRRR Please print the shapes of attention_scores and se3 before passing them to the Lambda layer to verify compatibility. If you still face the issue then, could you please ensure to use the latest TF version and share the code in a notebook or colab gist?

Thank you!

from tensorflow.

github-actions avatar github-actions commented on April 28, 2024

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

from tensorflow.

github-actions avatar github-actions commented on April 28, 2024

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

from tensorflow.

google-ml-butler avatar google-ml-butler commented on April 28, 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.