@fugood/onnxruntime-react-native
Version:
ONNX Runtime bridge for react native
18 lines (16 loc) • 680 B
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export * from '@fugood/onnxruntime-common';
import { registerBackend, env } from '@fugood/onnxruntime-common';
import { Platform } from 'react-native';
import { onnxruntimeBackend } from './backend';
import { version } from './version';
registerBackend('cpu', onnxruntimeBackend, 1);
registerBackend('xnnpack', onnxruntimeBackend, 1);
if (Platform.OS === 'android') {
registerBackend('nnapi', onnxruntimeBackend, 1);
} else if (Platform.OS === 'ios') {
registerBackend('coreml', onnxruntimeBackend, 1);
}
env.versions['react-native'] = version;
//# sourceMappingURL=index.js.map