Giter Site home page Giter Site logo

Comments (9)

YingXiuHe avatar YingXiuHe commented on August 26, 2024 6

i solved this problem via reinstalled the Keras to 2.0.5 version.

from densenet-keras.

monder0116 avatar monder0116 commented on August 26, 2024

i have same problem ++

from densenet-keras.

django-kz avatar django-kz commented on August 26, 2024

Guys @monder0116, @johntian Hi ! I encountered the same problem, I found a solution, but I am not sure that it is 100% correct. So what I did:
`from keras.layers import concatenate
concat_feat = concatenate([concat_feat, x], mode='concat', axis=concat_axis, name='concat_'+str(stage)+'_'+str(branch))

I replaced this line withmergetoconcatenate, because merge` seems to be deprecated invocation.

from densenet-keras.

Digital2Slave avatar Digital2Slave commented on August 26, 2024

@django-kz Thanks for sharing.

from densenet-keras.

2018daofeng avatar 2018daofeng commented on August 26, 2024

@YingXiuHe Thanks for sharing.

from densenet-keras.

2018daofeng avatar 2018daofeng commented on August 26, 2024

、、、
from keras.layers import concatenate
concat_feat = concatenate([concat_feat, x], axis=concat_axis, name='concat_'+str(stage)+''+str(branch))
、、、
in my win10,it works.
But
、、、
from keras.layers import concatenate
concat_feat = concatenate([concat_feat, x], mode='concat', axis=concat_axis, name='concat
'+str(stage)+'_'+str(branch))
、、、
it don't work. I guess that is the version problem of keras. Mine:2.2.4

from densenet-keras.

bitscott1102 avatar bitscott1102 commented on August 26, 2024

The latest version of Keras does not support concatenate

Use this Lambda

policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])

from densenet-keras.

huyanfei-cqupt avatar huyanfei-cqupt commented on August 26, 2024

The latest version of Keras does not support concatenate

Use this Lambda

policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])

hi, how to write the code? thanks.

from densenet-keras.

bitscott1102 avatar bitscott1102 commented on August 26, 2024

The latest version of Keras does not support concatenate
Use this Lambda
policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])

hi, how to write the code? thanks.

Replace concatenate([concat_feat, x], mode='concat', axis=concat_axis, name='concat'+str(stage)+'_'+str(branch))

with policy = Lambda(lambda x: x[0]-K.mean(x[0])+x[1], (NUM_ACTIONS,))([advantage, value])(This is my code. )
https://www.tensorflow.org/api_docs/python/tf/keras/layers/Lambda

from densenet-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.