Skip to content

v2.0.2a1

Pre-release
Pre-release

Choose a tag to compare

@niuchl niuchl released this 02 Sep 15:59
· 2077 commits to main since this 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 strides changes from IntArry to List<Int> to be immutable.
  • com.google.ai.edge.litert.Layout
    • The type of field dimensions and strides changes from IntArry to List<Int> to be immutable.
  • Rename GPU option NoImmutableExternalTensorsMode to NoExternalTensorsMode

Known Caveats

Major Features and Improvements

  • [tflite] Add error detection in TfLiteRegistration::init(). When a Delegate
    kernel returns TfLiteKernelInitFailed(), 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 minSdkVersion has increased to 23.
  • Update tests to provide kLiteRtHwAcceleratorNpu for fully AOT compiled
    models.