Double precision in deep learning

조회 수: 11(최근 30일)
bah
bah 2022년 11월 28일
답변: Joss Knight 2022년 12월 18일
Hello guys,
i want to train my LSTM using double precision but the deep learning toolbox only allows single precision. Can i change that to double precision or how do i train my neural network using double precision ?
Thanks.
  댓글 수: 4
bah
bah 2022년 11월 29일
Thanks a lot for the information.

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

답변(1개)

Joss Knight
Joss Knight 2022년 12월 18일
This is possible with a dlnetwork but it is (currently) more of a workaround than anything else. Once your dlnetwork is ready to go, convert it to double precision:
net = dlupdate(@double, net);
net.State = dlupdate(@double, net.State);
Then make sure your input data to the network is always in double precision. Everything should then remain in double as you train and use the network.
Let me know if this doesn't work for you.

범주

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by