mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-05 17:34:21 +00:00
Split python scripts
This commit is contained in:
7
tools/utils.py
Normal file
7
tools/utils.py
Normal file
@@ -0,0 +1,7 @@
|
||||
def print_cpp_vector(vector):
|
||||
print("std::vector<float> expected = {", end="")
|
||||
for i in range(len(vector)):
|
||||
if i != 0:
|
||||
print(", ", end="")
|
||||
print(str(round(vector[i].item(), 5)) + "f", end="")
|
||||
print("};")
|
||||
Reference in New Issue
Block a user