Giter Club home page Giter Club logo

Comments (4)

lvapeab avatar lvapeab commented on August 19, 2024

Hi @Imorton-zd ,

you'll probably need to pass the inputs to that layer as a list:

decoder_outputs, states = decoder_layer([decoder_inputs,encoder_outputs,state])

from keras.

Imorton-zd avatar Imorton-zd commented on August 19, 2024

Hi @lvapeab, thanks for your suggestion. However, I got another error after modification as your post.

Traceback (most recent call last):

  File "<ipython-input-92-3a7350e5c38d>", line 1, in <module>
    runfile('D:/intern/experiments/myAtt_with_custom.py', wdir='D:/intern/experiments')

  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
    execfile(filename, namespace)

  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "D:/intern/experiments/myAtt_with_custom.py", line 183, in <module>
    decoder_outputs, sts = decoder_layer([decoder_inputs,encoder_outputs,state])

  File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\topology.py", line 592, in __call__
    self.build(input_shapes)

  File "D:\intern\experiments\myRecurrent.py", line 1140, in build
    regularizer=self.ba_regularizer)

  File "C:\ProgramData\Anaconda3\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)

TypeError: add_weight() got multiple values for argument 'name'

The error is also met at the decoder_layer line. Where is the mistake?

from keras.

Imorton-zd avatar Imorton-zd commented on August 19, 2024

Hi, @MarcBS , please help me solve this problem when you have some time.

from keras.

MarcBS avatar MarcBS commented on August 19, 2024

Hi, @Imorton-zd , if you show us your code maybe we will be able to give you some hint about what might be failing.

from keras.

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.