keras - When to "add" layers and when to "concatenate" in neural networks? - Cross Validated
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up. Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. I am using "add" and "concatenate" as it is defined in keras. Basically, from my understanding, add will sum the inputs (which are the layers, in essence tensors). So if the first layer had a particular weight as 0.4 and another layer with the same exact shape had the corresponding weight being 0.5, then after the add the new weight becomes 0.9. However, with concatenate, let's say the first layer has dimensions 64x128x128 and the second layer had dimensions 32x128x128, then after concatenate, the n
keras - When to "add" layers and when to "concatenate" in neural networks? - Cross Validated Stack Internal Knowledge at work Bring the best of human thought and AI automation together at your work. Explore Stack Internal When to "add" layers and when to "concatenate" in neural networks? Ask Question Asked 7 years, 11 months ago Modified 6 years, 6 months ago Viewed 35k times 28 $\begingroup$ I am using "add" and "concatenate" as it is defined in keras. Basically, from my understanding , add will sum the inputs (which are the layers, in essence tensors). So if the first layer had a particular
related reading
- A Recipe for Training Neural Networkskarpathy.github.io
- reinforcement learning - How does one stack multiple observations in the input layer of a convolutional neural network? - Artificial Intelligence Stack Exchangeai.stackexchange.com
- A Recipe for Training Neural Networkskarpathy.github.io
- How to use K-fold Cross Validation with TensorFlow 2 and Keras? | MachineCurve.commachinecurve.com
- Neural networks and deep learningneuralnetworksanddeeplearning.com
- matlab - In Convolutional Neural Networks (CNN), how we can decide number of kernels between input and hidden layer? - Cross Validatedstats.stackexchange.com
- machine learning - How to intuitively explain what a kernel is? - Cross Validatedstats.stackexchange.com
- Convolutional Neural Networks, Explained | Towards Data Sciencetowardsdatascience.com
- neural networks - Why K and V are not the same in Transformer attention? - Cross Validatedstats.stackexchange.com
- python - How to correct unstable loss and accuracy during training? - Stack Overflowstackoverflow.com
- What is the difference between a loss function and an error function? - Cross Validatedstats.stackexchange.com
- Some Math behind Neural Tangent Kernel | Lil'Loglilianweng.github.io