tfjs-react-native-mmkv-storage
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

tfjs-react-native-mmkv-storage

MMKV storage IO for tfjs-react-native based on react-native-mmkv.

Alternative for tfjs built-in asyncStorageIO, which is based on async-storage.

NPM version

Differences with tfjs built-in asyncStorageIO:

Install:

$ yarn add tfjs-react-native-mmkv-storage

Usage

import { mmkvStorageIO } from 'tfjs-react-native-mmkv-storage';

// save model
const model = tf.sequential();
// setup model...
await model.save(mmkvStorageIO(`mymodel`));

// load model
const model = await tf.loadLayersModel(mmkvStorageIO(`mymodel`));

Testing

Too complicated to setup.

Package Sidebar

Install

npm i tfjs-react-native-mmkv-storage

Weekly Downloads

0

Version

3.0.0

License

MIT

Unpacked Size

38.2 kB

Total Files

10

Last publish

Collaborators

  • paradite