0.0.11 • Published 4 years ago

icbsc-fetch-dev.js v0.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

skip arraybuffer support

fetch-wechat

Fetch polyfill for WeChat mini program platform to work with TensorFlow.js.

TensorFlow.js allow you to load models served by HTTPs server. There are two model loading APIs

  • tf.loadGraphModel
  • tf.loadLayerModel

Both of which requires a fetch API exposed on the global scope or provided as part of the loadOption field.

The library is essentially a wrapper of wx.request API that simulates the fetch API. This is inspired by wxapp-fetch, with simpler code base and support of arraybuffer function.

Code example:

import { fetchFunc } from 'wechat_fetch';

const model = await tf.loadGraphModel(
      'https://model.url.com/model.json', {fetchFunc: fetchFunc()});
0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago