Lines Matching refs:ft
15 def printVector(f, ft, vector, name): argument
21 ft.write('{}'.format(min(127, int(round(256*v[i])))))
26 ft.write(" ")
33 ft.write("\n")
36 def printLayer(f, ft, layer): argument
40 ft.write('{} {} '.format(weights[0].shape[0], weights[0].shape[1]/3))
42 ft.write('{} {} '.format(weights[0].shape[0], weights[0].shape[1]))
44 ft.write('1\n')
46 ft.write('2\n')
48 ft.write('0\n')
49 printVector(f, ft, weights[0], layer.name + '_weights')
51 printVector(f, ft, weights[1], layer.name + '_recurrent_weights')
52 printVector(f, ft, weights[-1], layer.name + '_bias')
83 ft = open(sys.argv[3], 'w') variable
87 ft.write('rnnoise-nu model file version 1\n')
92 printLayer(f, ft, layer)