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

@tensorflow/tfjs-converter

Package Overview
Dependencies
Maintainers
11
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 1.0.0-alpha4 to 1.0.0-alpha5

1

dist/src/operations/operation_mapper_json.d.ts

@@ -12,2 +12,3 @@ import { tensorflow_json } from '../data/compiled_api_json';

private mapNode(node);
private decodeBase64(text);
private getStringParam(attrs, name, def, keepCase?);

@@ -14,0 +15,0 @@ private getBoolParam(attrs, name, def);

"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object.defineProperty(exports, "__esModule", { value: true });
var js_base64_1 = require("js-base64");
var compiled_api_json_1 = require("../data/compiled_api_json");

@@ -185,2 +200,14 @@ var utils_1 = require("./executors/utils");

};
OperationMapper.prototype.decodeBase64 = function (text) {
if (typeof atob !== 'undefined') {
return atob(text);
}
else if (typeof Buffer !== 'undefined') {
return new Buffer(text, 'base64').toString();
}
else {
throw new Error('Unable to decode base64 in this environment. ' +
'Missing built-in atob() or Buffer()');
}
};
OperationMapper.prototype.getStringParam = function (attrs, name, def, keepCase) {

@@ -192,3 +219,3 @@ if (keepCase === void 0) { keepCase = false; }

String.fromCharCode.apply(null, param.s) :
js_base64_1.Base64.decode(param.s);
this.decodeBase64(param.s);
return keepCase ? value : value.toLowerCase();

@@ -195,0 +222,0 @@ }

2

dist/src/version.d.ts
/** @license See the LICENSE file. */
declare const version = "1.0.0-alpha4";
declare const version = "1.0.0-alpha5";
export { version };

@@ -5,4 +5,4 @@ "use strict";

// This code is auto-generated, do not modify this file!
var version = '1.0.0-alpha4';
var version = '1.0.0-alpha5';
exports.version = version;
//# sourceMappingURL=version.js.map
{
"name": "@tensorflow/tfjs-converter",
"version": "1.0.0-alpha4",
"version": "1.0.0-alpha5",
"description": "Tensorflow model converter for javascript",

@@ -22,3 +22,2 @@ "main": "dist/src/index.js",

"@types/jasmine": "~2.8.6",
"@types/js-base64": "2.3.1",
"@types/node-fetch": "1.6.9",

@@ -68,5 +67,4 @@ "ajv": "~6.3.0",

"@types/long": "~3.0.32",
"js-base64": "2.4.9",
"protobufjs": "~6.8.6"
}
}

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