mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
macOS doesn't need a backend to be specified as there's only ever one
This commit is contained in:
parent
05cb3b8c05
commit
9e7c46f86e
1 changed files with 6 additions and 1 deletions
|
|
@ -209,10 +209,15 @@ const addTensorSplitArgs = (args: string[], launchArgs: LaunchArgs) => {
|
||||||
const buildBackendArgs = (launchArgs: LaunchArgs, platform: string) => {
|
const buildBackendArgs = (launchArgs: LaunchArgs, platform: string) => {
|
||||||
const args: string[] = [];
|
const args: string[] = [];
|
||||||
|
|
||||||
|
if (platform === 'darwin') {
|
||||||
|
return args;
|
||||||
|
}
|
||||||
|
|
||||||
if (!launchArgs.backend || launchArgs.backend === 'cpu') {
|
if (!launchArgs.backend || launchArgs.backend === 'cpu') {
|
||||||
if (launchArgs.backend === 'cpu' && platform !== 'darwin') {
|
if (launchArgs.backend === 'cpu') {
|
||||||
args.push('--usecpu');
|
args.push('--usecpu');
|
||||||
}
|
}
|
||||||
|
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue