UNPKG

2 kBPlain TextView 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 */
17
18import '@tensorflow/tfjs-core';
19// tslint:disable-next-line: no-imports-from-dist
20import '@tensorflow/tfjs-core/dist/register_all_gradients';
21// tslint:disable-next-line: no-imports-from-dist
22import '@tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops';
23
24export * from '@tensorflow/tfjs-core';
25export * from '@tensorflow/tfjs-layers';
26export * from '@tensorflow/tfjs-converter';
27
28// Export data api as tf.data
29import * as data from '@tensorflow/tfjs-data';
30export {data};
31
32// Import and register backends.
33import '@tensorflow/tfjs-backend-cpu';
34import '@tensorflow/tfjs-backend-webgl';
35
36// Import versions of all sub-packages.
37import {version_core} from '@tensorflow/tfjs-core';
38import {version_cpu} from '@tensorflow/tfjs-backend-cpu';
39import {version_webgl} from '@tensorflow/tfjs-backend-webgl';
40import {version_data} from '@tensorflow/tfjs-data';
41import {version_layers} from '@tensorflow/tfjs-layers';
42import {version_converter} from '@tensorflow/tfjs-converter';
43import {version as version_union} from './version';
44
45export const version = {
46 'tfjs-core': version_core,
47 'tfjs-backend-cpu': version_cpu,
48 'tfjs-backend-webgl': version_webgl,
49 'tfjs-data': version_data,
50 'tfjs-layers': version_layers,
51 'tfjs-converter': version_converter,
52 'tfjs': version_union
53};