Skip to content

Commit

Permalink
add allow_pickle option
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <praneeth@bpraneeth.com>
  • Loading branch information
bedapudi6788 committed Nov 30, 2023
1 parent 2adc00b commit b81ab9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions clients/python/fdclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ def infer_background_multiple(self, data_list, unique_ids=None):
if __name__ == "__main__":
client = FDClient("http://localhost:8080")

print(client.input_type)

s = time.time()
print("infer", client.infer(["this", "is", "some", "data"]), time.time() - s)
print("infer", client.infer(["this", "is", "some", b"data"]), time.time() - s)

s = time.time()
x = client.infer_background(["this", "is", "some", "data"])
x = client.infer_background(["this", "is", b"some", "data"])
print("infer_background", x.result(), time.time() - s)

s = time.time()
Expand All @@ -129,7 +131,7 @@ def infer_background_multiple(self, data_list, unique_ids=None):
[
_.result()
for _ in client.infer_background_multiple(
[["this", "is", "some", "data"]] * 40
[["this", b"is", "some", "data"]] * 40
)
]
),
Expand Down

0 comments on commit b81ab9f

Please sign in to comment.