Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LaurentMazare/xla-rs
/ functions
Functions
409 in github.com/LaurentMazare/xla-rs
⨍
Functions
409
◇
Types & classes
59
↓ 1 callers
Function
pjrt_client_addressable_device_count
xla_rs/xla_rs.cc:63
↓ 1 callers
Function
pjrt_client_addressable_devices
xla_rs/xla_rs.cc:74
↓ 1 callers
Function
pjrt_client_device_count
xla_rs/xla_rs.cc:61
↓ 1 callers
Function
pjrt_client_devices
xla_rs/xla_rs.cc:67
↓ 1 callers
Function
pjrt_client_free
xla_rs/xla_rs.cc:90
↓ 1 callers
Function
pjrt_client_platform_name
xla_rs/xla_rs.cc:81
↓ 1 callers
Function
pjrt_client_platform_version
xla_rs/xla_rs.cc:86
↓ 1 callers
Function
pjrt_cpu_client_create
xla_rs/xla_rs.cc:35
↓ 1 callers
Function
pjrt_device_debug_string
xla_rs/xla_rs.cc:166
↓ 1 callers
Function
pjrt_device_id
xla_rs/xla_rs.cc:144
↓ 1 callers
Function
pjrt_device_kind
xla_rs/xla_rs.cc:162
↓ 1 callers
Function
pjrt_device_local_hardware_id
xla_rs/xla_rs.cc:148
↓ 1 callers
Function
pjrt_device_process_index
xla_rs/xla_rs.cc:146
↓ 1 callers
Function
pjrt_device_to_string
xla_rs/xla_rs.cc:170
↓ 1 callers
Function
pjrt_device_transfer_from_outfeed
xla_rs/xla_rs.cc:157
↓ 1 callers
Function
pjrt_device_transfer_to_infeed
xla_rs/xla_rs.cc:152
↓ 1 callers
Function
pjrt_gpu_client_create
xla_rs/xla_rs.cc:41
↓ 1 callers
Function
pjrt_loaded_executable_free
xla_rs/xla_rs.cc:92
↓ 1 callers
Method
platform_name
The name of the platform.
src/wrappers/pjrt_client.rs:68
↓ 1 callers
Method
platform_version
The version of the platform.
src/wrappers/pjrt_client.rs:76
↓ 1 callers
Function
precompute_freqs_cis
(config: &Config, builder: &XlaBuilder)
examples/llama/main.rs:328
↓ 1 callers
Method
primitive_type
The stored primitive type.
src/wrappers/shape.rs:30
↓ 1 callers
Method
process_index
(&self)
src/wrappers/pjrt_device.rs:16
↓ 1 callers
Method
proto
Get the HloModuleProto for the computation.
src/wrappers/mod.rs:329
↓ 1 callers
Method
reduce_max
A node that computes the maximum value across the specified dimensions.
src/wrappers/xla_op.rs:552
↓ 1 callers
Function
sample
(exe: &PjRtLoadedExecutable, tokenizer: &Tokenizer, cnt: usize)
examples/nanogpt/main.rs:262
↓ 1 callers
Function
shape_dimensions
xla_rs/xla_rs.cc:832
↓ 1 callers
Function
shape_dimensions_size
xla_rs/xla_rs.cc:828
↓ 1 callers
Function
shape_element_type
xla_rs/xla_rs.cc:830
↓ 1 callers
Function
shape_free
xla_rs/xla_rs.cc:834
↓ 1 callers
Function
shape_tuple_shapes
xla_rs/xla_rs.cc:824
↓ 1 callers
Function
shape_tuple_shapes_size
xla_rs/xla_rs.cc:822
↓ 1 callers
Method
silu
SiLU activation function. This computes the element-wise SiLU activation, x.sigmoid(x).
src/wrappers/xla_op.rs:124
↓ 1 callers
Method
squeeze
Squeeze the dimension as the target index, i.e. if this dimension has size one remove it for the generated node. The target dimension index can be spe
src/wrappers/xla_op.rs:228
↓ 1 callers
Function
status_error_message
xla_rs/xla_rs.cc:1035
↓ 1 callers
Function
status_free
xla_rs/xla_rs.cc:1027
↓ 1 callers
Method
to_tuple1
(mut self)
src/wrappers/literal.rs:216
↓ 1 callers
Function
xla_builder_create
xla_rs/xla_rs.cc:174
↓ 1 callers
Function
xla_builder_free
xla_rs/xla_rs.cc:178
↓ 1 callers
Function
xla_computation_free
xla_rs/xla_rs.cc:1033
↓ 1 callers
Function
xla_computation_from_hlo_module_proto
xla_rs/xla_rs.cc:1076
↓ 1 callers
Function
xla_computation_name
xla_rs/xla_rs.cc:1029
↓ 1 callers
Function
xla_computation_proto
xla_rs/xla_rs.cc:1083
↓ 1 callers
Function
xla_op_free
xla_rs/xla_rs.cc:820
Function
add_op
()
tests/basic_tests.rs:4
Method
array
Create a new array shape.
src/wrappers/shape.rs:63
Method
array_shape
(&self)
src/wrappers/literal.rs:106
Method
array_with_type
Create a new array shape.
src/wrappers/shape.rs:68
Method
at
A new node containing only values for index `index_in_dim` on the dimension `dim_index`. The target dimension is squeezed so the resulting node has on
src/wrappers/xla_op.rs:220
Method
broadcast_in_dim
Add some broadcasting dimensions at arbitrary positions. See the [semantics](https://www.tensorflow.org/xla/operation_semantics#broadcastindim).
src/wrappers/xla_op.rs:159
Method
buffer_from_host_literal
Transfer some data from the host to a `PjRtBuffer` stored on the target device. If the device is not specified, the default device is used. The source
src/wrappers/pjrt_client.rs:170
Method
build
Build a computation from the specified root node. This can only be called once.
src/wrappers/xla_builder.rs:27
Method
clamp
Clamp the values in the original node to be between `min` and `max`.
src/wrappers/xla_op.rs:259
Method
client
The client that owns this executable.
src/wrappers/pjrt_loaded_executable.rs:11
Method
clone
(&self)
src/wrappers/literal.rs:10
Method
collapse
Collapse the dimensions of this node into a single dimension, [xla documentation](https://www.tensorflow.org/xla/operation_semantics#collapse).
src/wrappers/xla_op.rs:174
Method
compile
Compile a computation for this device, and return the executable.
src/wrappers/pjrt_client.rs:50
Method
conditional
Execute `true_comp` if `self` is true, `false_comp` if `self` is false, and return the result. `self` has to be a scalar of type `PRED`. `true_op` is
src/wrappers/xla_op.rs:380
Method
config_13b
()
examples/llama/main.rs:92
Method
config_30b
()
examples/llama/main.rs:96
Method
config_65b
()
examples/llama/main.rs:100
Method
config_7b
()
examples/llama/main.rs:88
Method
convert
Create a new literal containing the data from the original literal casted to a new primitive type. The dimensions of the resulting literal are the sam
src/wrappers/literal.rs:191
Method
copy_raw_from
Copy data from a slice to the literal. This returns an error if the primitive type used by the literal is not `T` or if number of elements in the slic
src/wrappers/literal.rs:134
Method
copy_raw_to_host_sync
Copy the data stored in a buffer to host memory in a blocking way.
src/wrappers/pjrt_buffer.rs:42
Method
copy_to_device
Copy the buffer to a different device.
src/wrappers/pjrt_buffer.rs:18
Method
cpu
A CPU client, this can run computations on multiple CPUs at the same time.
src/wrappers/pjrt_client.rs:16
Method
create_from_shape
Create an unitialized literal based on some primitive type and some dimensions.
src/wrappers/literal.rs:18
Method
create_from_shape_and_untyped_data
Create an unitialized literal based on some primitive type, some dimensions, and some data. The data is untyped, i.e. it is a sequence of bytes repres
src/wrappers/literal.rs:27
Method
debug_string
(&self)
src/wrappers/pjrt_device.rs:39
Method
decode
(&self, tokens: &[usize])
examples/llama/sentencepiece.rs:146
Method
default
()
examples/nanogpt/main.rs:192
Method
div
(self, rhs: S)
examples/llama/var_store.rs:76
Method
div
(self, rhs: S)
examples/nanogpt/var_store.rs:62
Method
drop
(&mut self)
src/wrappers/mod.rs:336
Method
drop
(&mut self)
src/wrappers/literal.rs:281
Method
drop
(&mut self)
src/wrappers/pjrt_loaded_executable.rs:68
Method
drop
(&mut self)
src/wrappers/pjrt_client.rs:186
Method
drop
(&mut self)
src/wrappers/pjrt_buffer.rs:70
Method
drop
(&mut self)
src/wrappers/xla_builder.rs:251
Method
drop
(&mut self)
src/wrappers/xla_op.rs:654
Method
drop
(&mut self)
src/wrappers/shape.rs:214
Method
einsum1
A node that applies the specified Einstein summation formula to this node.
src/wrappers/xla_op.rs:129
Method
einsum2
A node that applies the specified Einstein summation formula to this node and the other argument node.
src/wrappers/xla_op.rs:137
Method
element_type
(self)
src/wrappers/mod.rs:56
Method
first_dim
(&self)
src/wrappers/shape.rs:44
Method
from
(f: T)
src/wrappers/literal.rs:269
Method
from_file
(path: P)
examples/llama/sentencepiece.rs:15
Method
from_proto
(proto: &HloModuleProto)
src/wrappers/mod.rs:310
Method
from_proto_file
Read a HLO module from a proto file, either in binary or pbtxt format.
src/wrappers/mod.rs:354
Method
from_ptr
(ptr: c_lib::shape)
src/wrappers/shape.rs:177
Method
from_ptr_rec
(ptr: c_lib::shape)
src/wrappers/shape.rs:182
Method
from_raw_bytes
( _: &Self::Context, ty: ElementType, dims: &[usize], bytes: &[u8], )
src/npy.rs:262
Method
from_text_file
Read a HLO module from a text file.
src/wrappers/mod.rs:345
Method
get_first_element
Get the first element from a literal. This returns an error if type `T` is not the primitive type that the literal uses.
src/wrappers/literal.rs:55
Method
get_pairs
(word: &[Vec<u8>])
examples/llama/sentencepiece.rs:78
Method
get_pairs
(word: &[Vec<u8>])
examples/nanogpt/tokenizer.rs:323
Method
gpu
A GPU client, the memory requirements are limited by the specified `memory_fraction` and this memory can either be allocated dynamically or pre-alloca
src/wrappers/pjrt_client.rs:26
Method
infeed
Read a single value from the implicit streaming interface of the device.
src/wrappers/xla_builder.rs:99
Method
invalid_argument_error
An error node, using the 'invalid argument error' error type.
src/wrappers/xla_builder.rs:193
← previous
next →
201–300 of 409, ranked by callers