我有以下Pytorch张量:
>>> mean_actionstensor([[-5.7547e-04, 1.4318e-02, 1.9328e-04, -2.5660e-03, 3.5269e-03, -1.3797e-02, -6.1871e-04, -2.7425e-03, 1.1661e-03, 1.6873e-03, 3.9045e-03, 1.8047e-03, 4.8656e-03, 5.7182e-03, -4.8501e-03, -5.5913e-03, -4.4574e-03, -3.3154e-03, -4.9826e-03, -1.0071e-02, -2.3483e-03, -1.1413e-02, -4.9613e-03, -1.1648e-02, 2.4752e-03, -1.9764e-03, 3.1063e-03, -6.3481e-05, 7.6710e-03, 5.7503e-04]])
我从张量中得到以下最小值和最大值:
>>> th.min(mean_actions)tensor(-0.0138)>>> th.max(mean_actions)tensor(0.0143)
然而,我在张量中没有看到-0.0138
和0.0143
。我错过了什么?
这是调试会话的截图:
回答:
1.4318e-02是0.014318的科学记数法
以及
-1.3797e-02是-0.013797的科学记数法