added numpy serving example
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from random import random, randint, choice
|
from random import random, randint, choice
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
from morioc import MorIOC
|
from morioc import MorIOC
|
||||||
|
|
||||||
@ -10,6 +11,11 @@ if __name__ == "__main__":
|
|||||||
with MorIOC("mtest") as mor:
|
with MorIOC("mtest") as mor:
|
||||||
for i in range(1000):
|
for i in range(1000):
|
||||||
|
|
||||||
|
arr = np.random.random(20).reshape(2, 10)
|
||||||
|
mor.serve(
|
||||||
|
arr = arr
|
||||||
|
)
|
||||||
|
|
||||||
mor.serve(
|
mor.serve(
|
||||||
rand2 = 1.23,
|
rand2 = 1.23,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user