is there a substraction operation between Deep Learning layers?
显示 更早的评论
Hi guys,
I'm trying to build a DeepLearning network which contains a subtraction operation between two layers, and I can't find a way to do that while MATLAB has just an addition operation (additionLayer)?
for more clarification, the equation below discribes the step that I should do:
C = X - AvgPooling(X)
any suggestions guys?
回答(1 个)
Hao You
2020-10-10
0 个投票
I think maybe you can define a custom layer that implement a layer multiplicated by -1, then use additionLayer to get what you want.
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!