Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Feb 26, 2019
1 parent 56e8181 commit 24028df
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 92 deletions.
8 changes: 4 additions & 4 deletions lib/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export interface InferenceSessionConstructor {
}

// construct binding file path
const GPU_ENABLED = false; // TODO: handle GPU
const suffix = GPU_ENABLED ? '_gpu' : '';
const arch = process.platform === 'win32' ? 'win' : 'linux';
const GPU_ENABLED = false; // TODO: handle GPU

export const binding = require(`../bin/${arch}${suffix}-x64/onnxruntime${suffix}.node`) as {InferenceSession: InferenceSessionConstructor};
export const binding =
require(`../bin/napi-v3/${GPU_ENABLED ? 'gpu' : 'cpu'}/onnxruntime${GPU_ENABLED ? '_gpu' : ''}.node`) as
{InferenceSession: InferenceSessionConstructor};
Loading

0 comments on commit 24028df

Please sign in to comment.