mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-25 23:52:31 +08:00
Default to Torchx for the Neural Network task when on Windows (#1583)
This commit is contained in:
parent
5fd422c22b
commit
600666fd46
1 changed files with 9 additions and 1 deletions
|
@ -47,6 +47,14 @@ defmodule Livebook.Runtime.ElixirStandalone do
|
|||
dependency: %{dep: {:exla, "~> 0.4.1"}, config: [nx: [default_backend: EXLA.Backend]]}
|
||||
}
|
||||
|
||||
torchx = %{
|
||||
name: "torchx",
|
||||
dependency: %{dep: {:torchx, "~> 0.4.1"}, config: [nx: [default_backend: Torchx.Backend]]}
|
||||
}
|
||||
|
||||
windows? = match?({:win32, _}, :os.type())
|
||||
nx_backend_package = if(windows?, do: torchx, else: exla)
|
||||
|
||||
@extra_smart_cell_definitions [
|
||||
%{
|
||||
kind: "Elixir.KinoDB.ConnectionCell",
|
||||
|
@ -152,7 +160,7 @@ defmodule Livebook.Runtime.ElixirStandalone do
|
|||
variants: [
|
||||
%{
|
||||
name: "Default",
|
||||
packages: [kino_bumblebee, exla]
|
||||
packages: [kino_bumblebee, nx_backend_package]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue