From c7dadee86a1eb943715ceeab7523cd8c8d5a6d77 Mon Sep 17 00:00:00 2001 From: ebraraktas Date: Sun, 3 Oct 2021 11:26:44 +0300 Subject: [PATCH] Fix documentation --- src/interpreter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interpreter.rs b/src/interpreter.rs index 02520b4..fcb659a 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -193,7 +193,7 @@ impl Interpreter { /// /// # Errors /// - /// Returns error if you did not called [`Interpreter::allocate_tensors()`] before calling this + /// Returns error if [`Interpreter::allocate_tensors()`] was not called before calling this /// or given index is not a valid input tensor index in /// [0, [`Interpreter::input_tensor_count()`]). pub fn input(&self, index: usize) -> Result { @@ -223,7 +223,7 @@ impl Interpreter { /// /// Returns error if given index is not a valid output tensor index in /// [0, [`Interpreter::output_tensor_count()`]). And, it may return error - /// if the output tensor has been both sized and allocated. In general, + /// unless the output tensor has been both sized and allocated. In general, /// best practice is to call this *after* calling [`Interpreter::invoke()`]. pub fn output(&self, index: usize) -> Result { let max_index = self.output_tensor_count() - 1; @@ -353,7 +353,7 @@ impl Interpreter { /// /// # Errors /// - /// Return error if byte count of the data does not match the buffer size of the + /// Returns error if byte count of the data does not match the buffer size of the /// input tensor or the given index is not a valid input tensor index in /// [0, [`Interpreter::input_tensor_count()`]) or TensorFlow Lite C fails internally. pub fn copy(&self, data: &[T], index: usize) -> Result<()> {