浮点转定点#
import set_env
/media/pc/data/lxw/ai/tvm
import numpy as np
import tvm
np.frexp(-1.12121427878728)
(-0.56060713939364, 1)
np.frexp(0)
(0.0, 0)
np.frexp(1)
(0.5, 1)
np.frexp(-1)
(-0.5, 1)
import set_env
/media/pc/data/lxw/ai/tvm
import numpy as np
import tvm
np.frexp(-1.12121427878728)
(-0.56060713939364, 1)
np.frexp(0)
(0.0, 0)
np.frexp(1)
(0.5, 1)
np.frexp(-1)
(-0.5, 1)