Skip to content

XLA

Reactant.XLA.AllocatorStats Type

AllocatorStats()

Contains the following fields:

  • num_allocs

  • bytes_in_use

  • peak_bytes_in_use

  • largest_alloc_size

  • bytes_limit

  • bytes_reserved

  • peak_bytes_reserved

  • bytes_reservable_limit

  • largest_free_block_bytes

  • pool_bytes

  • peak_pool_bytes

It should be constructed using the allocatorstats function.

source
Reactant.XLA.allocatorstats Function

allocatorstats([device])

Return an AllocatorStats instance with information about the device specific allocator.

Warning

This method is currently not implemented for the CPU device.

source
Reactant.XLA.cost_analysis Function
julia
cost_analysis(::AbstractLoadedExecutable)
cost_analysis(::Reactant.Thunk)

Returns a HloCostAnalysisProperties object with the cost analysis of the loaded executable.

source
Reactant.XLA.device_ordinal Function
julia
device_ordinal(device::Device)

Given the device, return the corresponding global device ordinal in the client.

source

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.