Skip to content

0.2.0

Choose a tag to compare

@Edwardssss Edwardssss released this 09 Nov 16:53
· 89 commits to main since this release

Added

  • ElementKind, Mat::to_f32_typed, Mat::to_i8, Mat::from_typed and Mat::from_i8 read and
    build packed, 16-bit and quantized storage.
  • Extractor::extract_stored, Extractor::extract_stored_owned and Net::infer_stored keep the
    element width a layer wrote, including on Vulkan networks, whose extraction detaches its download
    copy from the pool allocator.
  • examples/typed_tensors.rs and examples/vulkan_resident.rs.
  • Runnable documentation examples for Mat::from_f32, Net::infer and Extractor::extract_stored.
  • CHANGELOG.md, SECURITY.md, docs/troubleshooting.md, docs/migration.md,
    docs/native-abi.md and docs/layer-coverage.md.
  • Every push compares the generated INT8 and operator fixtures against a native C++ reference, a
    coverage job reports line coverage of the wrapper, and a nightly workflow fuzzes the text
    parameter loader and the bounded weight reader.

Changed

  • Every conformance layer case runs one inference; the parameter-only tier is gone.
  • NCNN_TEST_DEVICE=vulkan repeats the operator families, graph pairs and layer cases on the
    default device.
  • Layer cases cover the key/value cache, channels inside depth copies, negative slice starts and
    requantizing convolutions.
  • Error::Invalid carries formatted detail, so shape, name and width mismatches name the values.
  • Mat::to_f32 validates the storage it reads, and the copy-count messages name
    Extractor::extract_stored as the path that avoids a conversion.
  • Public enums are #[non_exhaustive], and the guard requirements are stated as remedies.
  • Thread-affinity requirements are stated on Net, Mat and Device.

Fixed

  • The layer suite selected its child test by a bare name that matched no test, so no case ran.
  • LSTM fixtures supplied half of the recurrent weight block.
  • InverseSpectrogram fixtures supplied one channel where the transform reads one channel per
    frequency bin.
  • ROIAlign fixtures placed the region in a channel-padded tensor that the layer reads flat.