TFLite Python API: Fix documentation.
It doesn't make sense to get the value of the input tensor, which is provided by the developer. Also by reading the unit tests, this method is used for output tensor, not input tensor. PiperOrigin-RevId: 343554776 Change-Id: I0fc61d6ad9aff5c8601184bede2e6d9fe578f61b
This commit is contained in:
parent
52fad8bc95
commit
2335ed169a
@ -460,7 +460,7 @@ class Interpreter(object):
|
||||
]
|
||||
|
||||
def get_tensor(self, tensor_index):
|
||||
"""Gets the value of the input tensor (get a copy).
|
||||
"""Gets the value of the output tensor (get a copy).
|
||||
|
||||
If you wish to avoid the copy, use `tensor()`. This function cannot be used
|
||||
to read intermediate results.
|
||||
|
Loading…
x
Reference in New Issue
Block a user