mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-05 17:34:21 +00:00
8 lines
244 B
Python
8 lines
244 B
Python
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("};")
|