Git Product home page Git Product logo

Comments (8)

cjopengler avatar cjopengler commented on May 18, 2024

I got the same error

from textclassifier.

cjopengler avatar cjopengler commented on May 18, 2024

I found that in AttLayer change code from

" def compute_mask(self, inputs, mask=None):
return mask
"
to

def compute_mask(self, inputs, mask=None):
    return None

it will be ok. It means that should not support mask.

from textclassifier.

kk54709 avatar kk54709 commented on May 18, 2024

Solved the issue.
Thanks @cjopengler .

from textclassifier.

cjopengler avatar cjopengler commented on May 18, 2024

Solved the issue.
Thanks @cjopengler .

But have you found that 'l_att = AttLayer(100)(l_lstm)' the first AttLayer no error, but the second 'l_att_sent = AttLayer(100)(l_lstm_sent)' at computing mask.

from textclassifier.

kk54709 avatar kk54709 commented on May 18, 2024

Well, I'm still experimenting with it. But earlier I was facing some issue with the same and now it is working fine.

from textclassifier.

MingleiLI avatar MingleiLI commented on May 18, 2024

I have the same problem and changing the code as @cjopengler says works.

from textclassifier.

mingkin avatar mingkin commented on May 18, 2024

Solved the issue.
Thanks @cjopengler

from textclassifier.

980202006 avatar 980202006 commented on May 18, 2024

it is because of the function timedistributed
previous_mask
<tf.Tensor 'time_distributed_14/Reshape_2:0' shape=(?, 15, 100) dtype=bool>
the methods of resolution can be refer to https://blog.csdn.net/songbinxu/article/details/80242211

from textclassifier.

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.