예제 #1
0
def make_smatrix(dense_weight_file, n=1):
    matrix = load_weight_matrix(dense_weight_file, n)
    s = smatrix(matrix)
    return s
예제 #2
0
def make_smatrix(dense_weight_file, n=1):
	matrix = load_weight_matrix(dense_weight_file, n)
	s = smatrix(matrix)
	return s
예제 #3
0
def make_smatrix_file(dense_weight_file, output_file, n=1):
    matrix = load_weight_matrix(dense_weight_file, n)
    s = smatrix(matrix)
    s.serializeToFile(output_file)
예제 #4
0
def make_smatrix_file(dense_weight_file, output_file, n=1):
	matrix = load_weight_matrix(dense_weight_file, n)
	s = smatrix(matrix)
	s.serializeToFile(output_file)