v2.0.2a1
Pre-release
Pre-release
Release 2.0.2a1
LiteRT
Major Features and Improvements
Breaking Changes
com.google.ai.edge.litert.TensorBufferRequirements- It becomes a data class, so all fields could be accessed directly without getter methods.
- The type of field
strideschanges fromIntArrytoList<Int>to be immutable.
com.google.ai.edge.litert.Layout- The type of field
dimensionsandstrideschanges fromIntArrytoList<Int>to be immutable.
- The type of field
- Rename GPU option
NoImmutableExternalTensorsModetoNoExternalTensorsMode
Known Caveats
Major Features and Improvements
- [tflite] Add error detection in TfLiteRegistration::init(). When a Delegate
kernel returnsTfLiteKernelInitFailed(), it is treated
as a critical failure on Delegate. This error will be detected in
SubGraph::ReplaceNodeSubsetsWithDelegateKernels() will cause
Delegate::Prepare() to fail, ultimately leading
InterpreterBuilder::operator() or Interpreter::ModifyGraphWithDelegate() to
return an error. - Added Profiler API in Compiled Model: source.
- Added Error reporter API in Compiled Model: source.
- Added resize input tensor API in Compiled Model: source.
Bug Fixes and Other Changes
- The Android
minSdkVersionhas increased to 23. - Update tests to provide
kLiteRtHwAcceleratorNpufor fully AOT compiled
models.