# wechat-tensorflow-plugin **Repository Path**: WD-CHINA/wechat-tensorflow-plugin ## Basic Information - **Project Name**: wechat-tensorflow-plugin - **Description**: 微信小程序tensorflow插件源码 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-05 - **Last Updated**: 2022-08-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wechat-tensorflow-plugin #### 介绍 微信小程序wechat-tensorflow-plugin源码 #### 安装教程 1. 在app.js中引入index.js文件 ``` const fetchWechat = require('fetch-wechat'); import * as tf from '@tensorflow/tfjs-core'; import * as webgl from '@tensorflow/tfjs-backend-webgl'; import * as plugin from './index.js' ``` #### 使用说明 1. 在onLaunch生命周期中配置参数 ``` onLaunch: function() { plugin.configPlugin( { fetchFunc: fetchWechat.fetchFunc(), tf, webgl, canvas: wx.createOffscreenCanvas() }, false); } ```