Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tensorflow/tfjs-converter

Package Overview
Dependencies
Maintainers
12
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tensorflow/tfjs-converter - npm Package Compare versions

Comparing version 0.6.2 to 0.6.4

5

dist/src/operations/executors/reduction_executor.js

@@ -45,2 +45,7 @@ "use strict";

}
case 'prod': {
var axis = utils_1.getParamValue('axis', node, tensorMap, context);
var keepDims = utils_1.getParamValue('keepDims', node, tensorMap, context);
return [tfc.prod(utils_1.getParamValue('x', node, tensorMap, context), axis, keepDims)];
}
default:

@@ -47,0 +52,0 @@ throw TypeError("Node type " + node.op + " is not implemented");

@@ -81,4 +81,17 @@ "use strict";

]
},
{
'tfOpName': 'Prod',
'dlOpName': 'prod',
'category': 'reduction',
'params': [
{ 'tfInputIndex': 0, 'dlParamName': 'x', 'type': 'tensor' },
{ 'tfInputIndex': 1, 'dlParamName': 'axis', 'type': 'number[]' }, {
'tfParamName': 'keep_dims',
'dlParamName': 'keepDims',
'type': 'bool'
}
]
}
];
//# sourceMappingURL=reduction.js.map

2

dist/src/version.d.ts

@@ -1,2 +0,2 @@

declare const version = "0.6.2";
declare const version = "0.6.4";
export { version };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var version = '0.6.2';
var version = '0.6.4';
exports.version = version;
//# sourceMappingURL=version.js.map
{
"name": "@tensorflow/tfjs-converter",
"version": "0.6.2",
"version": "0.6.4",
"description": "Tensorflow model converter for javascript",

@@ -17,6 +17,6 @@ "main": "dist/src/index.js",

"peerDependencies": {
"@tensorflow/tfjs-core": "~0.13.2"
"@tensorflow/tfjs-core": "~0.13.6"
},
"devDependencies": {
"@tensorflow/tfjs-core": "~0.13.2",
"@tensorflow/tfjs-core": "~0.13.6",
"@types/jasmine": "~2.8.6",

@@ -23,0 +23,0 @@ "@types/node-fetch": "1.6.9",

@@ -127,11 +127,6 @@ [![Build Status](https://travis-ci.org/tensorflow/tfjs-converter.svg?branch=master)](https://travis-ci.org/tensorflow/tfjs-converter)

1. Install the tfjs-converter npm package
Instantiate the [FrozenModel class](./src/executor/frozen_model.ts) and run inference.
`yarn add @tensorflow/tfjs-converter` or `npm install @tensorflow/tfjs-converter`
2. Instantiate the [FrozenModel class](./src/executor/frozen_model.ts) and run inference.
```typescript
import * as tf from '@tensorflow/tfjs';
import {loadFrozenModel} from '@tensorflow/tfjs-converter';

@@ -141,3 +136,3 @@ const MODEL_URL = 'https://.../mobilenet/tensorflowjs_model.pb';

const model = await loadFrozenModel(MODEL_URL, WEIGHTS_URL);
const model = await tf.loadFrozenModel(MODEL_URL, WEIGHTS_URL);
const cat = document.getElementById('cat');

@@ -164,3 +159,3 @@ model.execute({input: tf.fromPixels(cat)});

Therefore, you can load the same frozen model from local file system into
a Node.js program running TensorFlow.js. This is done by calling `laodFrozenModel` with the path
a Node.js program running TensorFlow.js. This is done by calling `loadFrozenModel` with the path
to the model files:

@@ -167,0 +162,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc