Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small typos #2470

Closed
wants to merge 1 commit into from
Closed
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
10 changes: 5 additions & 5 deletions tensorflow/lite/micro/micro_interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ class MicroInterpreter {
return nullptr;
}

// Returns a pointer to the tensor for the corresponding tensor_index
// Returns a pointer to the tensor for the corresponding tensor_index.
TfLiteEvalTensor* GetTensor(int tensor_index, int subgraph_index = 0);

// Reset the state to be what you would expect when the interpreter is first
// created. i.e. after Init and Prepare is called for the very first time.
// created. i.e. after Init and Prepare are called for the very first time.
TfLiteStatus Reset();

TfLiteStatus initialization_status() const { return initialization_status_; }
Expand All @@ -135,13 +135,13 @@ class MicroInterpreter {
// Returns the actual used arena in bytes. This method gives the optimal arena
// size. It's only available after `AllocateTensors` has been called.
// Note that normally `tensor_arena` requires 16 bytes alignment to fully
// utilize the space. If it's not the case, the optimial arena size would be
// utilize the space. If it's not the case, the optimal arena size would be
// arena_used_bytes() + 16.
size_t arena_used_bytes() const { return allocator_.used_bytes(); }

// Returns True if all Tensors are being preserves
// Returns True if all Tensors are being preserved
// TODO(b/297106074) : revisit making C++ example or test for
// preserve_all_tesnors
// preserve_all_tensors.
bool preserve_all_tensors() const {
return allocator_.preserves_all_tensor();
}
Expand Down
Loading