mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-06 01:34:22 +00:00
Creating torch predict function
This commit is contained in:
@@ -2,9 +2,11 @@ import numpy as np
|
||||
import utils
|
||||
from sys import argv
|
||||
|
||||
|
||||
def gen_random_vector(size):
|
||||
return np.random.rand(size)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
if len(argv) < 2:
|
||||
@@ -12,4 +14,4 @@ if __name__ == "__main__":
|
||||
exit(1)
|
||||
|
||||
vector = gen_random_vector(int(argv[1]))
|
||||
utils.print_cpp_vector(vector)
|
||||
utils.print_cpp_vector(vector)
|
||||
|
||||
Reference in New Issue
Block a user