linux怎么训练神经网络,神经网络训练在Linux虚拟机的速度快过Windows

>> import tools

>>> tools.float_performance()

==> float type : float64

Dataset is loaded...train 60000 and test 10000

Epoch 1:4131/10000,Cost(on train):1.976069012858489,round time(s):27.29

Epoch 2:6981/10000,Cost(on train):1.2734770169398337,round time(s):27.15

Epoch 3:8059/10000,Cost(on train):0.863751833232319,round time(s):26.75

check weight : float64

check bias : float64

check data : float64

==> float type : float32

Dataset is loaded...train 60000 and test 10000

Epoch 1:5542/10000,Cost(on train):1.9846122093061607,round time(s):20.16

Epoch 2:7300/10000,Cost(on train):1.2205352244853973,round time(s):20.58

Epoch 3:8176/10000,Cost(on train):0.8342689389915516,round time(s):20.24

check weight : float32

check bias : float32

check data : float32

==> float type : dataset in float16, nn in float32

Dataset is loaded...train 60000 and test 10000

Epoch 1:4480/10000,Cost(on train):2.0938571048120656,round time(s):22.39

Epoch 2:6940/10000,Cost(on train):1.3261136438975731,round time(s):22.14

Epoch 3:8118/10000,Cost(on train):0.8644946610357612,round time(s):22.46

check weight : float32

check bias : float32

check data : float16

==> float type : float16

Dataset is loaded...train 60000 and test 10000

Epoch 1:3810/10000,Cost(on train):2.0293811360677085,round time(s):133.39

Epoch 2:7130/10000,Cost(on train):1.3160956583658854,round time(s):133.8

Epoch 3:8092/10000,Cost(on train):0.9138703043619791,round time(s):135.69

check weight : float16

check bias : float16

check data : float16

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值