added numpy serving example

This commit is contained in:
2021-03-09 18:58:05 +01:00
parent 76e8b95c85
commit 79b9b04663

View File

@ -2,6 +2,7 @@
from time import sleep
from random import random, randint, choice
import numpy as np
from morioc import MorIOC
@ -10,6 +11,11 @@ if __name__ == "__main__":
with MorIOC("mtest") as mor:
for i in range(1000):
arr = np.random.random(20).reshape(2, 10)
mor.serve(
arr = arr
)
mor.serve(
rand2 = 1.23,
)