In these graphs, the input tensor pointers may get "refreshed" during
invocation. This refresh is fine if the original pointer came from the
arena, but if it comes from something like the direct ByteBuffer raw
address, the input data will be lost.
Avoid this by simply using memcpy from the direct ByteBuffer. This is
still quite fast, but avoids the hack where we simply inject the
direct ByteBuffer address as the tensor buffer pointer.
A longer term solution will formally allow providing "custom" allocated
regions to tensor inputs, but until then, do the safe thing.
PiperOrigin-RevId: 310643333
Change-Id: I05dfebd24617ebb1af7eb281ff9e530b01669093
This change fixes the issue for missing min_runtime_version in flatbuffers exported by MLIR converter. Specifically:
*Export `min_runtime_version` in metadata of flatbuffer (fixed-length byte array).
*Update all related mlir tests to have metadata.
PiperOrigin-RevId: 299894972
Change-Id: Ic79f3ab05b593882362f5baf62493861961acbe3
- Users can give it with flag "--input_layer_value_files". For example, if there are 2 input tensors, --input_layer_value_files=input1:input1_file_path,input2:input2_file.
- The list of strings are separated with the delimiter '\0'. For example, if the tensor shape is (1x3xSTRING), the file format should be "first_string_value\0second_string_value\0third_string_value\0".
PiperOrigin-RevId: 299272934
Change-Id: Iab5951c903fb4976e0dcf43dd09ba4695653dab3
The added LSTM supports layer norm and projection. Will add LSTM logging kernel for the other variants.
PiperOrigin-RevId: 279388926
Change-Id: I84ede1a3994e186a9024eaad344594cfa47199a6
This change moves //tensorflow/contrib/lite to //tensorflow/lite in preparation
for TensorFlow 2.0's deprecation of contrib/. If you refer to TF Lite build
targets or headers, you will need to update them manually. If you use TF Lite
from the TensorFlow python package, "tf.contrib.lite" now points to "tf.lite".
Please update your imports as soon as possible.
For more details, see https://groups.google.com/a/tensorflow.org/forum/#!topic/tflite/iIIXOTOFvwQ
@angersson and @aselle are conducting this migration. Please contact them if
you have any further questions.
PiperOrigin-RevId: 219536476