UNPKG

2.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * @license
5 * Copyright 2020 Google LLC. All Rights Reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * =============================================================================
18 */
19// We explicitly import the modular kernels so they get registered in the
20// global registry when we compile the library. A modular build would replace
21// the contents of this file and import only the kernels that are needed.
22var tfjs_core_1 = require("@tensorflow/tfjs-core");
23var Dilation2D_1 = require("./kernels/Dilation2D");
24var Dilation2DBackpropFilter_1 = require("./kernels/Dilation2DBackpropFilter");
25var Dilation2DBackpropInput_1 = require("./kernels/Dilation2DBackpropInput");
26var NonMaxSuppressionV4_1 = require("./kernels/NonMaxSuppressionV4");
27var NonMaxSuppressionV5_1 = require("./kernels/NonMaxSuppressionV5");
28var Softmax_1 = require("./kernels/Softmax");
29var SquaredDifference_1 = require("./kernels/SquaredDifference");
30// List all kernel configs here
31var kernelConfigs = [
32 Dilation2D_1.dilation2dConfig, Dilation2DBackpropInput_1.dilation2dBackpropInputConfig,
33 Dilation2DBackpropFilter_1.dilation2dBackpropFilterConfig, NonMaxSuppressionV4_1.nonMaxSuppressionV4Config,
34 NonMaxSuppressionV5_1.nonMaxSuppressionV5Config, Softmax_1.softmaxConfig, SquaredDifference_1.squaredDifferenceConfig
35];
36for (var _i = 0, kernelConfigs_1 = kernelConfigs; _i < kernelConfigs_1.length; _i++) {
37 var kernelConfig = kernelConfigs_1[_i];
38 tfjs_core_1.registerKernel(kernelConfig);
39}