@tensorflow/tfjs-converter
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -40,2 +40,5 @@ "use strict"; | ||
} | ||
case 'DivNoNan': { | ||
return [tfc.divNoNan(utils_1.getParamValue('a', node, tensorMap, context), utils_1.getParamValue('b', node, tensorMap, context))]; | ||
} | ||
case 'FloorDiv': { | ||
@@ -42,0 +45,0 @@ return [tfc.floorDiv(utils_1.getParamValue('a', node, tensorMap, context), utils_1.getParamValue('b', node, tensorMap, context))]; |
@@ -113,2 +113,4 @@ "use strict"; | ||
return [tfc.leakyRelu(utils_1.getParamValue('x', node, tensorMap, context), utils_1.getParamValue('alpha', node, tensorMap, context))]; | ||
case 'Prelu': | ||
return [tfc.prelu(utils_1.getParamValue('x', node, tensorMap, context), utils_1.getParamValue('alpha', node, tensorMap, context))]; | ||
default: | ||
@@ -115,0 +117,0 @@ throw TypeError("Node type " + node.op + " is not implemented"); |
@@ -166,3 +166,3 @@ "use strict"; | ||
closeTensorArray.clearAndClose(); | ||
return [2 /*return*/, []]; | ||
return [2 /*return*/, [tfjs_core_1.scalar(0)]]; | ||
case 17: throw TypeError("Node type " + node.op + " is not implemented"); | ||
@@ -169,0 +169,0 @@ } |
@@ -53,3 +53,3 @@ "use strict"; | ||
case 'NoOp': | ||
return []; | ||
return [tfc.scalar(1)]; | ||
case 'Print': | ||
@@ -56,0 +56,0 @@ var input = utils_1.getParamValue('x', node, tensorMap, context); |
@@ -25,4 +25,6 @@ "use strict"; | ||
case 'Concat': { | ||
var n = utils_1.getParamValue('n', node, tensorMap, context); | ||
var axis = utils_1.getParamValue('axis', node, tensorMap, context); | ||
var inputs = utils_1.getParamValue('tensors', node, tensorMap, context); | ||
inputs = inputs.slice(0, n); | ||
return [tfc.concat(inputs, axis)]; | ||
@@ -29,0 +31,0 @@ } |
@@ -92,2 +92,13 @@ "use strict"; | ||
{ | ||
'tfOpName': 'DivNoNan', | ||
'category': 'arithmetic', | ||
'inputs': [ | ||
{ 'start': 0, 'name': 'a', 'type': 'tensor' }, | ||
{ 'start': 1, 'name': 'b', 'type': 'tensor' }, | ||
], | ||
'attrs': [ | ||
{ 'tfName': 'T', 'name': 'dtype', 'type': 'dtype', 'notSupported': true } | ||
] | ||
}, | ||
{ | ||
'tfOpName': 'FloorDiv', | ||
@@ -170,10 +181,7 @@ 'category': 'arithmetic', | ||
], | ||
'attrs': [{ | ||
'tfName': 'T', | ||
'name': 'dtype', | ||
'type': 'dtype', | ||
'notSupported': true | ||
}] | ||
'attrs': [ | ||
{ 'tfName': 'T', 'name': 'dtype', 'type': 'dtype', 'notSupported': true } | ||
] | ||
} | ||
]; | ||
//# sourceMappingURL=arithmetic.js.map |
@@ -26,3 +26,4 @@ "use strict"; | ||
{ 'start': -1, 'name': 'axis', 'type': 'number' } | ||
] | ||
], | ||
'attrs': [{ 'tfName': 'N', 'name': 'n', 'type': 'number', 'defaultValue': 2 }] | ||
}, | ||
@@ -35,3 +36,4 @@ { | ||
{ 'start': 0, 'name': 'axis', 'type': 'number' } | ||
] | ||
], | ||
'attrs': [{ 'tfName': 'N', 'name': 'n', 'type': 'number', 'defaultValue': 2 }] | ||
}, | ||
@@ -38,0 +40,0 @@ { |
/** @license See the LICENSE file. */ | ||
declare const version = "1.3.1"; | ||
declare const version = "1.3.2"; | ||
export { version }; |
@@ -5,4 +5,4 @@ "use strict"; | ||
// This code is auto-generated, do not modify this file! | ||
var version = '1.3.1'; | ||
var version = '1.3.2'; | ||
exports.version = version; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@tensorflow/tfjs-converter", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Tensorflow model converter for javascript", | ||
@@ -18,6 +18,6 @@ "main": "dist/src/index.js", | ||
"peerDependencies": { | ||
"@tensorflow/tfjs-core": "1.3.1" | ||
"@tensorflow/tfjs-core": "1.3.2" | ||
}, | ||
"devDependencies": { | ||
"@tensorflow/tfjs-core": "1.3.1", | ||
"@tensorflow/tfjs-core": "1.3.2", | ||
"@types/deep-equal": "^1.0.1", | ||
@@ -24,0 +24,0 @@ "@types/jasmine": "~2.8.6", |
@@ -57,2 +57,7 @@ /** | ||
} | ||
case 'DivNoNan': { | ||
return [tfc.divNoNan( | ||
getParamValue('a', node, tensorMap, context) as tfc.Tensor, | ||
getParamValue('b', node, tensorMap, context) as tfc.Tensor)]; | ||
} | ||
case 'FloorDiv': { | ||
@@ -59,0 +64,0 @@ return [tfc.floorDiv( |
@@ -166,2 +166,6 @@ /** | ||
getParamValue('alpha', node, tensorMap, context) as number)]; | ||
case 'Prelu': | ||
return [tfc.prelu( | ||
getParamValue('x', node, tensorMap, context) as tfc.Tensor, | ||
getParamValue('alpha', node, tensorMap, context) as tfc.Tensor)]; | ||
default: | ||
@@ -168,0 +172,0 @@ throw TypeError(`Node type ${node.op} is not implemented`); |
@@ -160,3 +160,3 @@ /** | ||
closeTensorArray.clearAndClose(); | ||
return []; | ||
return [scalar(0)]; | ||
default: | ||
@@ -163,0 +163,0 @@ throw TypeError(`Node type ${node.op} is not implemented`); |
@@ -69,3 +69,3 @@ /** | ||
case 'NoOp': | ||
return []; | ||
return [tfc.scalar(1)]; | ||
case 'Print': | ||
@@ -72,0 +72,0 @@ const input = getParamValue('x', node, tensorMap, context) as tfc.Tensor; |
@@ -33,5 +33,7 @@ /** | ||
case 'Concat': { | ||
const n = getParamValue('n', node, tensorMap, context) as number; | ||
const axis = getParamValue('axis', node, tensorMap, context) as number; | ||
const inputs = | ||
let inputs = | ||
getParamValue('tensors', node, tensorMap, context) as tfc.Tensor[]; | ||
inputs = inputs.slice(0, n); | ||
return [tfc.concat(inputs, axis)]; | ||
@@ -38,0 +40,0 @@ } |
@@ -93,2 +93,13 @@ /** | ||
{ | ||
'tfOpName': 'DivNoNan', | ||
'category': 'arithmetic', | ||
'inputs': [ | ||
{'start': 0, 'name': 'a', 'type': 'tensor'}, | ||
{'start': 1, 'name': 'b', 'type': 'tensor'}, | ||
], | ||
'attrs': [ | ||
{'tfName': 'T', 'name': 'dtype', 'type': 'dtype', 'notSupported': true} | ||
] | ||
}, | ||
{ | ||
'tfOpName': 'FloorDiv', | ||
@@ -171,9 +182,6 @@ 'category': 'arithmetic', | ||
], | ||
'attrs': [{ | ||
'tfName': 'T', | ||
'name': 'dtype', | ||
'type': 'dtype', | ||
'notSupported': true | ||
}] | ||
'attrs': [ | ||
{'tfName': 'T', 'name': 'dtype', 'type': 'dtype', 'notSupported': true} | ||
] | ||
} | ||
]; |
@@ -27,3 +27,5 @@ import {OpMapper} from '../types'; | ||
{'start': -1, 'name': 'axis', 'type': 'number'} | ||
] | ||
], | ||
'attrs': | ||
[{'tfName': 'N', 'name': 'n', 'type': 'number', 'defaultValue': 2}] | ||
}, | ||
@@ -36,3 +38,5 @@ { | ||
{'start': 0, 'name': 'axis', 'type': 'number'} | ||
] | ||
], | ||
'attrs': [{'tfName': 'N', 'name': 'n', 'type': 'number', 'defaultValue': 2}] | ||
}, | ||
@@ -39,0 +43,0 @@ { |
/** @license See the LICENSE file. */ | ||
// This code is auto-generated, do not modify this file! | ||
const version = '1.3.1'; | ||
const version = '1.3.2'; | ||
export {version}; |
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 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 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 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 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
2984837
25052