Skip to content

Commit

Permalink
add dummy allocate_tensors() function to match tf.lite.Interpreter API
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-xmos committed Aug 16, 2023
1 parent 19ad2ac commit b0c2f19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/xmos_ai_tools/xinterpreters/base/base_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def print_memory_plan(self) -> None:
"""! Abstract method to print a plan of memory allocation"""
raise NotImplementedError

def allocate_tensors(self):
"""! Dummy function to match tf.lite.Interpreter() API"""
return

def get_input_tensor_size(self, input_index: int = 0, model_index: int = 0) -> int:
"""! Read the size of the input tensor from the model.
@param input_index The index of input tensor to target.
Expand Down

0 comments on commit b0c2f19

Please sign in to comment.