INNER CODE UNIT · JavaScript

handleSetPyTorchBackend

stemrollerapp/stemroller · main-src/main.js:189

async function handleSetPyTorchBackend(event, backend) {
  return processQueue.setPyTorchBackend(backend)
}

let mainWindow = null
function createWindow() {
  mainWindow = new BrowserWindow({
    title: 'StemRoller',
    show: false,
    backgroundColor: '#0F172A',
    minWidth: 640,
    minHeight: 480,
    width: 800,
    height: 600,
    webPreferences: {
      sandbox: true,
      devTools: process.env.NODE_ENV === 'dev',
      preload: path.resolve(path.join(import.meta.dirname, 'preload.cjs')),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…