Skip to content

benclarkegithub/capacitor-file-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Capacitor File System

Custom IOHandler for TensorFlow.js that uses Capacitor's File System. Based on https://www.tensorflow.org/js/guide/save_load.

Example Usage

import * as tf from '@tensorflow/tfjs';

// Load
const customFileSystem = new CapacitorFileSystem(modelReference);
this.userModel = await tf.loadLayersModel(customFileSystem);

// Save
const customFileSystem = new CapacitorFileSystem(modelReference);
model.save(customFileSystem);

Where modelReference is a valid path accepted by Capacitor's File System plugin.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published