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:
Tiezhen WANG 2020-11-20 13:31:36 -08:00 committed by TensorFlower Gardener
parent 52fad8bc95
commit 2335ed169a

View File

@ -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.