필터 지우기
필터 지우기

is there a substraction operation between Deep Learning layers?

조회 수: 2 (최근 30일)
ihssane houhou
ihssane houhou 2019년 6월 22일
댓글: ihssane houhou 2024년 6월 13일
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?
  댓글 수: 2
Ullah Nadeem
Ullah Nadeem 2024년 6월 13일
Hello ihssane houhou, had you resolved this issue? If yes, how please I need to do it as well.
ihssane houhou
ihssane houhou 2024년 6월 13일
At that time I didn't find a solution so I switched to Python (TensorFlow) witch what I recommand you to do (and it's better if you go for Pytorch instead of TensorFlow)
BTW I just checked again for a subtruction layer in Matlab 2024 and it seems they didn't add it till now
Good luck

댓글을 달려면 로그인하십시오.

답변 (1개)

Hao You
Hao You 2020년 10월 10일
I think maybe you can define a custom layer that implement a layer multiplicated by -1, then use additionLayer to get what you want.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by