UNPKG

2.07 kBJavaScriptView Raw
1/**
2 * @license
3 * Copyright 2018 Google LLC. All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 * =============================================================================
16 */
17import '@tensorflow/tfjs-core';
18// tslint:disable-next-line: no-imports-from-dist
19import '@tensorflow/tfjs-core/dist/register_all_gradients';
20// tslint:disable-next-line: no-imports-from-dist
21import '@tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops';
22export * from '@tensorflow/tfjs-core';
23export * from '@tensorflow/tfjs-layers';
24export * from '@tensorflow/tfjs-converter';
25// Export data api as tf.data
26import * as data from '@tensorflow/tfjs-data';
27export { data };
28// Import and register backends.
29export * from '@tensorflow/tfjs-backend-cpu';
30export * from '@tensorflow/tfjs-backend-webgl';
31// Import versions of all sub-packages.
32import { version_core } from '@tensorflow/tfjs-core';
33import { version_cpu } from '@tensorflow/tfjs-backend-cpu';
34import { version_webgl } from '@tensorflow/tfjs-backend-webgl';
35import { version_data } from '@tensorflow/tfjs-data';
36import { version_layers } from '@tensorflow/tfjs-layers';
37import { version_converter } from '@tensorflow/tfjs-converter';
38import { version as version_union } from './version';
39export const version = {
40 'tfjs-core': version_core,
41 'tfjs-backend-cpu': version_cpu,
42 'tfjs-backend-webgl': version_webgl,
43 'tfjs-data': version_data,
44 'tfjs-layers': version_layers,
45 'tfjs-converter': version_converter,
46 'tfjs': version_union
47};
48//# sourceMappingURL=index.js.map
\No newline at end of file