MCPcopy Create free account

hub / github.com/LaurentMazare/xla-rs / functions

Functions409 in github.com/LaurentMazare/xla-rs

Methodiota
A constant node with the specified shape that holds increasing values starting from 0 along the iota dimension.
src/wrappers/xla_builder.rs:159
Methodiota1
A constant node for a unidimensional array of increasing values starting from 0.
src/wrappers/xla_builder.rs:173
Methodis_tuple
(&self)
src/wrappers/shape.rs:86
Methodkind
(&self)
src/wrappers/pjrt_device.rs:32
Functionliteral_make_tuple
xla_rs/xla_rs.cc:1011
Functionmain
()
build.rs:60
Functionmain
()
examples/loop.rs:5
Functionmain
()
examples/load_hlo.rs:16
Functionmain
()
examples/basics.rs:4
Functionmain
()
examples/llama/main.rs:375
Functionmain
()
examples/nanogpt/main.rs:283
Functionmean_op
()
tests/basic_tests.rs:55
Methodnew
Create a new builder with the associated name, the name is only used for debugging purposes.
src/wrappers/xla_builder.rs:16
Methodnew
Create a new array shape.
src/wrappers/shape.rs:12
Methodnew
(mut vb: VarBuilder, vocab_size: usize, n_embd: usize)
examples/llama/main.rs:110
Methodnew
(builder: &xla::XlaBuilder)
examples/llama/var_store.rs:27
Methodnew
(mut vs: VarStore, vocab_size: usize, n_embd: usize)
examples/nanogpt/main.rs:38
Methodnew
Creates a new tokenizer, this takes as input the path for the bpe rank file.
examples/nanogpt/tokenizer.rs:276
Methodnew
(path: P)
examples/nanogpt/var_store.rs:13
Methodnew_no_bias
(mut vb: VarBuilder, in_size: usize, out_size: usize)
examples/llama/main.rs:135
Methodnew_no_bias
(mut vs: VarStore, in_size: usize, out_size: usize)
examples/nanogpt/main.rs:85
Methodnew_with_type
Create a new array shape.
src/wrappers/shape.rs:17
Functionop_abs
xla_rs/xla_rs.cc:423
Functionop_add
xla_rs/xla_rs.cc:285
Functionop_and
xla_rs/xla_rs.cc:327
Functionop_atan2
xla_rs/xla_rs.cc:345
Functionop_builder
xla_rs/xla_rs.cc:816
Functionop_cbrt
xla_rs/xla_rs.cc:531
Functionop_ceil
xla_rs/xla_rs.cc:447
Functionop_clz
xla_rs/xla_rs.cc:483
Functionop_copy
xla_rs/xla_rs.cc:573
Functionop_cos
xla_rs/xla_rs.cc:489
Functionop_div
xla_rs/xla_rs.cc:303
Functionop_dot
xla_rs/xla_rs.cc:357
Functionop_eq
xla_rs/xla_rs.cc:381
Functionop_exp
xla_rs/xla_rs.cc:429
Functionop_expm1
xla_rs/xla_rs.cc:435
Functionop_floor
xla_rs/xla_rs.cc:441
Functionop_ge
xla_rs/xla_rs.cc:393
Functionop_gt
xla_rs/xla_rs.cc:399
Functionop_imag
xla_rs/xla_rs.cc:513
Functionop_is_finite
xla_rs/xla_rs.cc:537
Functionop_le
xla_rs/xla_rs.cc:405
Functionop_log
xla_rs/xla_rs.cc:459
Functionop_log1p
xla_rs/xla_rs.cc:465
Functionop_logistic
xla_rs/xla_rs.cc:471
Functionop_lower_triangle
xla_rs/xla_rs.cc:549
Functionop_lt
xla_rs/xla_rs.cc:411
Functionop_max
xla_rs/xla_rs.cc:315
Functionop_min
xla_rs/xla_rs.cc:321
Functionop_mul
xla_rs/xla_rs.cc:297
Functionop_ne
xla_rs/xla_rs.cc:387
Functionop_neg
xla_rs/xla_rs.cc:543
Functionop_not
xla_rs/xla_rs.cc:417
Functionop_or
xla_rs/xla_rs.cc:333
Functionop_pow
xla_rs/xla_rs.cc:351
Functionop_real
xla_rs/xla_rs.cc:507
Functionop_rem
xla_rs/xla_rs.cc:309
Functionop_round
xla_rs/xla_rs.cc:453
Functionop_rsqrt
xla_rs/xla_rs.cc:525
Functionop_sign
xla_rs/xla_rs.cc:477
Functionop_sin
xla_rs/xla_rs.cc:495
Functionop_sqrt
xla_rs/xla_rs.cc:519
Functionop_sub
xla_rs/xla_rs.cc:291
Functionop_tanh
xla_rs/xla_rs.cc:501
Functionop_upper_triangle
xla_rs/xla_rs.cc:555
Functionop_xor
xla_rs/xla_rs.cc:339
Functionop_zero_like
xla_rs/xla_rs.cc:591
Functionop_zeros_like
xla_rs/xla_rs.cc:585
Methodoutfeed
(&self, ty: PrimitiveType, dims: &[i64], config: &str)
src/wrappers/xla_op.rs:393
Methodparse
Hacky parser for the npy header, a typical example would be: {'descr': '<f8', 'fortran_order': False, 'shape': (128,), }
src/npy.rs:91
Methodparse_and_return_unverified_module
(data: &[u8])
src/wrappers/mod.rs:362
Methodparse_proto
(data: &[u8], binary: bool)
src/wrappers/mod.rs:375
Methodread_npy
Reads a npy file and return the stored multi-dimensional array as a literal.
src/npy.rs:192
Methodread_npz
Reads a npz file and returns the stored multi-dimensional arrays together with their names.
src/npy.rs:206
Methodread_npz_by_name
Reads a npz file and returns the stored multi-dimensional arrays for some specified names.
src/npy.rs:231
Methodreduce_min
A node that computes the minimum value across the specified dimensions.
src/wrappers/xla_op.rs:563
Methodreshape
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
Methodrng_normal
A node that when executed generates values using a random normal distribution.
src/wrappers/xla_op.rs:287
Methodrng_uniform
A node that when executed generates values using a random uniform distribution.
src/wrappers/xla_op.rs:272
Methodscalar
Create a literal from a scalar value, the resulting literal has zero dimensions and stores a single element.
src/wrappers/literal.rs:165
Methodshape
(&self)
src/wrappers/xla_op.rs:415
Methodsigmoid
Sigmoid activation function. This computes the element-wise sigmoid.
src/wrappers/xla_op.rs:117
Functionsum_op
()
tests/basic_tests.rs:22
Methodtake
(&self, indices: &XlaOp, axis: i64)
src/wrappers/xla_op.rs:494
Methodto_tuple
(mut self)
src/wrappers/literal.rs:212
Methodto_tuple2
(mut self)
src/wrappers/literal.rs:225
Methodto_tuple3
(mut self)
src/wrappers/literal.rs:235
Methodto_tuple4
(mut self)
src/wrappers/literal.rs:246
Methodtransfer_from_outfeed
Transfer and return a value for the given shape from the outfeed queue.
src/wrappers/pjrt_device.rs:53
Methodtransfer_to_infeed
(&self, src: &super::Literal)
src/wrappers/pjrt_device.rs:46
Methodtry_from
(value: &Shape)
src/wrappers/shape.rs:124
Methodtuple
(elems: Vec<Self>)
src/wrappers/literal.rs:258
Methodtuple
Build a tuple from multiple operands.
src/wrappers/xla_builder.rs:243
Functiontuple_literal
()
tests/basic_tests.rs:89
Functiontuple_op
()
tests/tuple_tests.rs:4
Functiontuple_op
()
tests/basic_tests.rs:70
Methodtuple_size
(&self)
src/wrappers/shape.rs:93
Methodty
The kind of elements that are computed by this operand, shortcut for `primitive_type`.
src/wrappers/xla_op.rs:406
Methodunknown_error
An error node, using the 'unknown error' error type.
src/wrappers/xla_builder.rs:186
← previousnext →301–400 of 409, ranked by callers