google / tensorflow-tools

A collection of manipulation tools for TensorFlow data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TensorFlow Tools

A collection of manipulation tools for TensorFlow data.

Installation

Use NPM using npm install tensorflow-tools or fork, clone, download the source on GitHub to get the latest version.

Basic Usage

Decode data

const TensorFlowReaders = require('tensorflow-tools').readers;
let metaData = ...;
let indexData = ...;
let dataData = ...;

let checkpointReader = readers.getCheckpointReader();
checkpointReader.decode(
  metaData, indexData, dataData
).then(() => {
  console.log('Happy checkpoint data', checkpointReader);
});

Decode local files

const TensorFlowReaders = require('tensorflow-tools').readers;

let checkpointReader = readers.getCheckpointReader();
checkpointReader.decodeLocalFiles(
  '...model.ckpt'
).then(() => {
  console.log('Happy checkpoint data', checkpointReader);
});

Decode remote files

const TensorFlowReaders = require('tensorflow-tools').readers;

let checkpointReader = readers.getCheckpointReader();
checkpointReader.decodeRemoteFiles(
  'http://...model.ckpt'
).then(() => {
  console.log('Happy checkpoint data', checkpointReader);
});

Disclaimer

This is not an official Google product.

Author

Markus Bordihn

License

Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0

About

A collection of manipulation tools for TensorFlow data.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%