New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tensorflow/tfjs-converter

Package Overview
Dependencies
Maintainers
13
Versions
155
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-alpha3 to 1.0.0-alpha4

31

dist/src/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @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.
* =============================================================================
*/
var tfjs_core_1 = require("@tensorflow/tfjs-core");
var frozen_model_1 = require("./executor/frozen_model");

@@ -45,8 +62,10 @@ var frozen_model_json_1 = require("./executor/frozen_model_json");

function loadFrozenModel(modelUrl, weightsManifestUrl, requestOption, onProgress) {
tfjs_core_1.deprecationWarn('tf.loadFrozenModel() is going away. ' +
'Use tf.loadGraphModel() instead, and note the positional argument changes.');
if (modelUrl && modelUrl.endsWith('.json')) {
return frozen_model_json_1.loadFrozenModel(modelUrl, requestOption, onProgress);
}
// if users are using the new loadGraphModel API, the weightManifestUrl will
// be omitted. We will build the url using the model URL path and default
// manifest file name.
// if users are using the new loadGraphModel API, the weightManifestUrl
// will be omitted. We will build the url using the model URL path and
// default manifest file name.
if (modelUrl != null && weightsManifestUrl == null) {

@@ -97,3 +116,7 @@ weightsManifestUrl = getWeightsManifestUrl(modelUrl);

function loadGraphModel(modelUrl, options) {
if (options != null && options.fromTFHub) {
if (options === void 0) { options = {}; }
if (options == null) {
options = {};
}
if (options.fromTFHub) {
return frozen_model_1.loadTfHubModule(modelUrl, options.requestInit, options.onProgress);

@@ -100,0 +123,0 @@ }

2

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

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

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

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

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