Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/onert/sample/minimal-python/inference_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import psutil
import os
from typing import List
from typing import List, Optional
from onert import infer, tensorinfo


Expand Down Expand Up @@ -47,8 +47,8 @@ def get_validated_input_tensorinfos(sess: infer.session,
return updated_infos


def benchmark_inference(nnpackage_path: str, backends: str, input_shapes: List[List[int]],
repeat: int):
def benchmark_inference(nnpackage_path: str, backends: str,
input_shapes: Optional[List[List[int]]], repeat: int):
mem_before_kb = get_memory_usage_mb() * 1024

sess = infer.session(path=nnpackage_path, backends=backends)
Expand Down