replaced floatn() with round()

This commit is contained in:
Glenn Jocher
2020-03-13 10:06:17 -07:00
parent 8a1f35eac6
commit a278623067
2 changed files with 2 additions and 6 deletions
-4
View File
@@ -26,10 +26,6 @@ np.set_printoptions(linewidth=320, formatter={'float_kind': '{:11.5g}'.format})
cv2.setNumThreads(0)
def floatn(x, n=3): # format floats to n decimals
return float(format(x, '.%gf' % n))
def init_seeds(seed=0):
random.seed(seed)
np.random.seed(seed)