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
Method
iota
A constant node with the specified shape that holds increasing values starting from 0 along the iota dimension.
src/wrappers/xla_builder.rs:159
Method
iota1
A constant node for a unidimensional array of increasing values starting from 0.
src/wrappers/xla_builder.rs:173
Method
is_tuple
(&self)
src/wrappers/shape.rs:86
Method
kind
(&self)
src/wrappers/pjrt_device.rs:32
Function
literal_make_tuple
xla_rs/xla_rs.cc:1011
Function
main
()
build.rs:60
Function
main
()
examples/loop.rs:5
Function
main
()
examples/load_hlo.rs:16
Function
main
()
examples/basics.rs:4
Function
main
()
examples/llama/main.rs:375
Function
main
()
examples/nanogpt/main.rs:283
Function
mean_op
()
tests/basic_tests.rs:55
Method
new
Create a new builder with the associated name, the name is only used for debugging purposes.
src/wrappers/xla_builder.rs:16
Method
new
Create a new array shape.
src/wrappers/shape.rs:12
Method
new
(mut vb: VarBuilder, vocab_size: usize, n_embd: usize)
examples/llama/main.rs:110
Method
new
(builder: &xla::XlaBuilder)
examples/llama/var_store.rs:27
Method
new
(mut vs: VarStore, vocab_size: usize, n_embd: usize)
examples/nanogpt/main.rs:38
Method
new
Creates a new tokenizer, this takes as input the path for the bpe rank file.
examples/nanogpt/tokenizer.rs:276
Method
new
(path: P)
examples/nanogpt/var_store.rs:13
Method
new_no_bias
(mut vb: VarBuilder, in_size: usize, out_size: usize)
examples/llama/main.rs:135
Method
new_no_bias
(mut vs: VarStore, in_size: usize, out_size: usize)
examples/nanogpt/main.rs:85
Method
new_with_type
Create a new array shape.
src/wrappers/shape.rs:17
Function
op_abs
xla_rs/xla_rs.cc:423
Function
op_add
xla_rs/xla_rs.cc:285
Function
op_and
xla_rs/xla_rs.cc:327
Function
op_atan2
xla_rs/xla_rs.cc:345
Function
op_builder
xla_rs/xla_rs.cc:816
Function
op_cbrt
xla_rs/xla_rs.cc:531
Function
op_ceil
xla_rs/xla_rs.cc:447
Function
op_clz
xla_rs/xla_rs.cc:483
Function
op_copy
xla_rs/xla_rs.cc:573
Function
op_cos
xla_rs/xla_rs.cc:489
Function
op_div
xla_rs/xla_rs.cc:303
Function
op_dot
xla_rs/xla_rs.cc:357
Function
op_eq
xla_rs/xla_rs.cc:381
Function
op_exp
xla_rs/xla_rs.cc:429
Function
op_expm1
xla_rs/xla_rs.cc:435
Function
op_floor
xla_rs/xla_rs.cc:441
Function
op_ge
xla_rs/xla_rs.cc:393
Function
op_gt
xla_rs/xla_rs.cc:399
Function
op_imag
xla_rs/xla_rs.cc:513
Function
op_is_finite
xla_rs/xla_rs.cc:537
Function
op_le
xla_rs/xla_rs.cc:405
Function
op_log
xla_rs/xla_rs.cc:459
Function
op_log1p
xla_rs/xla_rs.cc:465
Function
op_logistic
xla_rs/xla_rs.cc:471
Function
op_lower_triangle
xla_rs/xla_rs.cc:549
Function
op_lt
xla_rs/xla_rs.cc:411
Function
op_max
xla_rs/xla_rs.cc:315
Function
op_min
xla_rs/xla_rs.cc:321
Function
op_mul
xla_rs/xla_rs.cc:297
Function
op_ne
xla_rs/xla_rs.cc:387
Function
op_neg
xla_rs/xla_rs.cc:543
Function
op_not
xla_rs/xla_rs.cc:417
Function
op_or
xla_rs/xla_rs.cc:333
Function
op_pow
xla_rs/xla_rs.cc:351
Function
op_real
xla_rs/xla_rs.cc:507
Function
op_rem
xla_rs/xla_rs.cc:309
Function
op_round
xla_rs/xla_rs.cc:453
Function
op_rsqrt
xla_rs/xla_rs.cc:525
Function
op_sign
xla_rs/xla_rs.cc:477
Function
op_sin
xla_rs/xla_rs.cc:495
Function
op_sqrt
xla_rs/xla_rs.cc:519
Function
op_sub
xla_rs/xla_rs.cc:291
Function
op_tanh
xla_rs/xla_rs.cc:501
Function
op_upper_triangle
xla_rs/xla_rs.cc:555
Function
op_xor
xla_rs/xla_rs.cc:339
Function
op_zero_like
xla_rs/xla_rs.cc:591
Function
op_zeros_like
xla_rs/xla_rs.cc:585
Method
outfeed
(&self, ty: PrimitiveType, dims: &[i64], config: &str)
src/wrappers/xla_op.rs:393
Method
parse
Hacky parser for the npy header, a typical example would be: {'descr': '<f8', 'fortran_order': False, 'shape': (128,), }
src/npy.rs:91
Method
parse_and_return_unverified_module
(data: &[u8])
src/wrappers/mod.rs:362
Method
parse_proto
(data: &[u8], binary: bool)
src/wrappers/mod.rs:375
Method
read_npy
Reads a npy file and return the stored multi-dimensional array as a literal.
src/npy.rs:192
Method
read_npz
Reads a npz file and returns the stored multi-dimensional arrays together with their names.
src/npy.rs:206
Method
read_npz_by_name
Reads a npz file and returns the stored multi-dimensional arrays for some specified names.
src/npy.rs:231
Method
reduce_min
A node that computes the minimum value across the specified dimensions.
src/wrappers/xla_op.rs:563
Method
reshape
Create a new literal containing the same data but using a different shape. This returns an error if the number of elements in the literal is different
src/wrappers/literal.rs:180
Method
rng_normal
A node that when executed generates values using a random normal distribution.
src/wrappers/xla_op.rs:287
Method
rng_uniform
A node that when executed generates values using a random uniform distribution.
src/wrappers/xla_op.rs:272
Method
scalar
Create a literal from a scalar value, the resulting literal has zero dimensions and stores a single element.
src/wrappers/literal.rs:165
Method
shape
(&self)
src/wrappers/xla_op.rs:415
Method
sigmoid
Sigmoid activation function. This computes the element-wise sigmoid.
src/wrappers/xla_op.rs:117
Function
sum_op
()
tests/basic_tests.rs:22
Method
take
(&self, indices: &XlaOp, axis: i64)
src/wrappers/xla_op.rs:494
Method
to_tuple
(mut self)
src/wrappers/literal.rs:212
Method
to_tuple2
(mut self)
src/wrappers/literal.rs:225
Method
to_tuple3
(mut self)
src/wrappers/literal.rs:235
Method
to_tuple4
(mut self)
src/wrappers/literal.rs:246
Method
transfer_from_outfeed
Transfer and return a value for the given shape from the outfeed queue.
src/wrappers/pjrt_device.rs:53
Method
transfer_to_infeed
(&self, src: &super::Literal)
src/wrappers/pjrt_device.rs:46
Method
try_from
(value: &Shape)
src/wrappers/shape.rs:124
Method
tuple
(elems: Vec<Self>)
src/wrappers/literal.rs:258
Method
tuple
Build a tuple from multiple operands.
src/wrappers/xla_builder.rs:243
Function
tuple_literal
()
tests/basic_tests.rs:89
Function
tuple_op
()
tests/tuple_tests.rs:4
Function
tuple_op
()
tests/basic_tests.rs:70
Method
tuple_size
(&self)
src/wrappers/shape.rs:93
Method
ty
The kind of elements that are computed by this operand, shortcut for `primitive_type`.
src/wrappers/xla_op.rs:406
Method
unknown_error
An error node, using the 'unknown error' error type.
src/wrappers/xla_builder.rs:186
← previous
next →
301–400 of 409, ranked by callers