diff --git a/stable b/stable index 02bf650..610220f 120000 --- a/stable +++ b/stable @@ -1 +1 @@ -v0.1.5 \ No newline at end of file +v0.1.6 \ No newline at end of file diff --git a/v0.1 b/v0.1 index 02bf650..610220f 120000 --- a/v0.1 +++ b/v0.1 @@ -1 +1 @@ -v0.1.5 \ No newline at end of file +v0.1.6 \ No newline at end of file diff --git a/v0.1.6/404.html b/v0.1.6/404.html new file mode 100644 index 0000000..fb26603 --- /dev/null +++ b/v0.1.6/404.html @@ -0,0 +1,368 @@ + + + +
+ + + + + + + + + + + + + + + + + +LuxDeviceUtils.jl
is a lightweight package defining rules for transferring data across devices. Most users should directly use Lux.jl instead.
LuxDeviceUtils.cpu_device
LuxDeviceUtils.gpu_backend!
LuxDeviceUtils.gpu_device
LuxDeviceUtils.reset_gpu_device!
LuxDeviceUtils.supported_gpu_backends
#
+LuxDeviceUtils.gpu_backend!
— Function.
gpu_backend!() = gpu_backend!("")
+gpu_backend!(backend) = gpu_backend!(string(backend))
+gpu_backend!(backend::AbstractLuxGPUDevice)
+gpu_backend!(backend::String)
+
Creates a LocalPreferences.toml
file with the desired GPU backend.
If backend == ""
, then the gpu_backend
preference is deleted. Otherwise, backend
is validated to be one of the possible backends and the preference is set to backend
.
If a new backend is successfully set, then the Julia session must be restarted for the change to take effect.
+ + + +#
+LuxDeviceUtils.cpu_device
— Function.
cpu_device() -> LuxCPUDevice()
+
Return a LuxCPUDevice
object which can be used to transfer data to CPU.
#
+LuxDeviceUtils.gpu_device
— Function.
gpu_device(; force_gpu_usage::Bool=false) -> AbstractLuxDevice()
+
Selects GPU device based on the following criteria:
+gpu_backend
preference is set and the backend is functional on the system, then that device is selected.supported_gpu_backends()
and select the first functional backend.force_gpu_usage
is false
, then cpu_device()
is invoked.#
+LuxDeviceUtils.reset_gpu_device!
— Function.
reset_gpu_device!()
+
Resets the selected GPU device. This is useful when automatic GPU selection needs to be run again.
+ +#
+LuxDeviceUtils.supported_gpu_backends
— Function.
supported_gpu_backends() -> Tuple{String, ...}
+
Return a tuple of supported GPU backends.
+Warning
+This is not the list of functional backends on the system, but rather backends which Lux.jl
supports.
Warning
+Metal.jl
support is extremely experimental and most things are not expected to work.
LuxDeviceUtils.jl
is a lightweight package defining rules for transferring data across devices. Most users should directly use Lux.jl instead.
LuxDeviceUtils.cpu_device
LuxDeviceUtils.gpu_backend!
LuxDeviceUtils.gpu_device
LuxDeviceUtils.reset_gpu_device!
LuxDeviceUtils.supported_gpu_backends
# LuxDeviceUtils.gpu_backend!
\u2014 Function.
gpu_backend!() = gpu_backend!(\"\")\ngpu_backend!(backend) = gpu_backend!(string(backend))\ngpu_backend!(backend::AbstractLuxGPUDevice)\ngpu_backend!(backend::String)\n
Creates a LocalPreferences.toml
file with the desired GPU backend.
If backend == \"\"
, then the gpu_backend
preference is deleted. Otherwise, backend
is validated to be one of the possible backends and the preference is set to backend
.
If a new backend is successfully set, then the Julia session must be restarted for the change to take effect.
source
"},{"location":"#data-transfer","title":"Data Transfer","text":"# LuxDeviceUtils.cpu_device
\u2014 Function.
cpu_device() -> LuxCPUDevice()\n
Return a LuxCPUDevice
object which can be used to transfer data to CPU.
source
# LuxDeviceUtils.gpu_device
\u2014 Function.
gpu_device(; force_gpu_usage::Bool=false) -> AbstractLuxDevice()\n
Selects GPU device based on the following criteria:
gpu_backend
preference is set and the backend is functional on the system, then that device is selected.supported_gpu_backends()
and select the first functional backend.force_gpu_usage
is false
, then cpu_device()
is invoked.source
"},{"location":"#miscellaneous","title":"Miscellaneous","text":"# LuxDeviceUtils.reset_gpu_device!
\u2014 Function.
reset_gpu_device!()\n
Resets the selected GPU device. This is useful when automatic GPU selection needs to be run again.
source
# LuxDeviceUtils.supported_gpu_backends
\u2014 Function.
supported_gpu_backends() -> Tuple{String, ...}\n
Return a tuple of supported GPU backends.
Warning
This is not the list of functional backends on the system, but rather backends which Lux.jl
supports.
Warning
Metal.jl
support is extremely experimental and most things are not expected to work.
source
"}]} \ No newline at end of file diff --git a/v0.1.6/siteinfo.js b/v0.1.6/siteinfo.js new file mode 100644 index 0000000..2b3ee15 --- /dev/null +++ b/v0.1.6/siteinfo.js @@ -0,0 +1 @@ +var DOCUMENTER_CURRENT_VERSION = "v0.1.6"; diff --git a/v0.1.6/sitemap.xml b/v0.1.6/sitemap.xml new file mode 100644 index 0000000..72a9a54 --- /dev/null +++ b/v0.1.6/sitemap.xml @@ -0,0 +1,8 @@ + +