Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LaurentMazare/ug
/ functions
Functions
526 in github.com/LaurentMazare/ug
⨍
Functions
526
◇
Types & classes
143
Method
broadcast
(&self, shape: Vec<usize>)
ug-pyo3/src/lib.rs:174
Method
c_contiguous
(&self)
ug-core/src/layout.rs:664
Method
cat
(args: &[&Self], dim: D1)
ug-core/src/lazy_buffer.rs:722
Method
cat
(lhs: &LB<Self>, rhs: &LB<Self>, axis: usize)
ug-llama/src/cpu_ops.rs:128
Method
cat
(lhs: &LB<Self>, rhs: &LB<Self>, axis: usize)
ug-llama/src/metal_ops.rs:96
Method
cat
(lhs: &LB<Self>, rhs: &LB<Self>, axis: usize)
ug-llama/src/cuda_ops.rs:98
Method
causal_mask
(src: &LB<Self>)
ug-llama/src/cpu_ops.rs:33
Method
causal_mask
(_: &LB<Self>)
ug-llama/src/metal_ops.rs:179
Method
causal_mask
(_: &LB<Self>)
ug-llama/src/cuda_ops.rs:176
Method
compile
(&self, kernel: &ug::lang::ssa::Kernel, name: Option<&str>)
ug-metal/src/runtime.rs:158
Method
compile
(&self, kernel: &crate::lang::ssa::Kernel, name: Option<&str>)
ug-core/src/cpu_runtime.rs:274
Method
compile
(&self, kernel: &ug::lang::ssa::Kernel, name: Option<&str>)
ug-cuda/src/runtime.rs:247
Method
compile_cu
( &self, cu_code: &str, func_name: &str, block_dim: u32, grid_dim: u32
ug-pyo3/src/lib.rs:438
Method
compile_inner
( c_code: &[u8], func_name: String, tmp_c: &PathBuf, tmp_so: &
ug-core/src/cpu_runtime.rs:468
Method
compile_ptx
( &self, ptx_code: &str, func_name: &str, block_dim: u32, grid_dim: u3
ug-pyo3/src/lib.rs:418
Method
const_default
We cannot use the default trait as it's not const.
ug-core/src/display.rs:74
Method
const_f32
(v: f32)
ug-pyo3/src/lib.rs:293
Function
convert_slice
(data: &[u8])
ug-core/src/safetensors.rs:295
Method
copy
( data: R, s: S, device: &D, )
ug-core/src/lazy_buffer.rs:687
Method
copy_device_to_host
(&self, dst: &mut [DT])
ug-metal/src/runtime.rs:276
Method
copy_device_to_host
(&self, dst: &mut [DT])
ug-cuda/src/runtime.rs:381
Method
copy_host_to_device
(&mut self, src: &[DT])
ug-metal/src/runtime.rs:263
Method
create
(buffers: &[&LazyBuffer<D>])
ug-core/src/schedule.rs:78
Method
create_one
(buffer: &LazyBuffer<D>)
ug-core/src/schedule.rs:103
Method
cst
( c: C, s: S, device: &D, )
ug-core/src/lazy_buffer.rs:643
Method
cst
(&mut self, c: C)
ug-core/src/block.rs:104
Method
cst
(v: usize)
ug-pyo3/src/lib.rs:538
Method
custom
( f: F, args: Vec<Self>, s: S, dtype: DType, device: &D, )
ug-core/src/lazy_buffer.rs:292
Method
custom_softmax
(src: &LB<Self>)
ug-llama/src/cpu_ops.rs:6
Method
custom_softmax
(src: &LB<Self>)
ug-llama/src/metal_ops.rs:146
Method
custom_softmax
(src: &LB<Self>)
ug-llama/src/cuda_ops.rs:149
Method
data
(&self)
ug-core/src/cpu_runtime.rs:128
Method
data_mut
(&mut self)
ug-core/src/cpu_runtime.rs:132
Method
debug
(err: impl std::fmt::Debug)
ug-core/src/error.rs:65
Method
default
()
ug-core/src/cache.rs:80
Method
define_acc_f32
(v: f32)
ug-pyo3/src/lib.rs:303
Method
define_acc_i32
(v: i32)
ug-pyo3/src/lib.rs:298
Method
deref
(&self)
ug-core/src/lazy_buffer.rs:16
Method
deref
(&self)
ug-core/src/const.rs:32
Method
device
(&self)
ug-metal/src/runtime.rs:246
Method
device
(&self)
ug-core/src/cpu_runtime.rs:372
Method
device
(&self)
ug-cuda/src/runtime.rs:363
Method
dims0
(&self)
ug-core/src/lazy_buffer.rs:205
Method
dims1
(&self)
ug-core/src/lazy_buffer.rs:209
Function
display_multi_dim
()
ug-core/tests/display_tests.rs:52
Function
display_scalar
()
ug-core/tests/display_tests.rs:10
Function
display_vector
()
ug-core/tests/display_tests.rs:28
Method
dtype
(&self)
ug-metal/src/runtime.rs:242
Method
dtype
(&self)
ug-core/src/const.rs:135
Method
empty
()
ug-core/src/block.rs:134
Method
end_range
(start_idx: usize)
ug-pyo3/src/lib.rs:308
Function
eval_add
()
ug-core/tests/basic_tests.rs:4
Function
eval_dotprod
()
ug-core/tests/basic_tests.rs:16
Function
eval_ssa
( kernel: &Kernel, buffers: Vec<&mut Buffer>, _args: &[Value<N>], grid_idx: usize, )
ug-core/src/interpreter.rs:201
Method
extend
Modifies the shape by adding a list of additional dimensions at the end of the existing dimensions.
ug-core/src/layout.rs:193
Function
extract_additional_types
(module)
stub.py:215
Method
f16
()
ug-pyo3/src/lib.rs:92
Function
f32
(v: f32)
ug-pyo3/src/lib.rs:222
Method
f32
()
ug-pyo3/src/lib.rs:76
Method
flops_and_mem
(&self)
ug-pyo3/src/lib.rs:387
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-metal/src/code_gen.rs:7
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-core/src/lazy_buffer.rs:9
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-core/src/cpu_code_gen.rs:7
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-core/src/dtype.rs:17
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-core/src/lang.rs:816
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-core/src/layout.rs:10
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ug-cuda/src/code_gen.rs:7
Method
fmt_dt
( &self, f: &mut std::fmt::Formatter, )
ug-core/src/display.rs:8
Function
fn_predicate
(obj)
stub.py:66
Method
for_num_elems
(n: u32)
ug-core/src/lang.rs:42
Method
from
(value: i64)
ug-core/src/const.rs:113
Method
from
(value: Id)
ug-core/src/lower_op.rs:61
Method
from
(value: DType)
ug-core/src/lang.rs:68
Method
from
(dims: &[usize; C])
ug-core/src/layout.rs:16
Method
from
(value: Vec<bf16>)
ug-core/src/cpu_runtime.rs:34
Method
from
(_value: std::sync::PoisonError<T>)
ug-core/src/error.rs:84
Method
from
(val: Id)
ug-core/src/block.rs:32
Method
from_dims
(dims: &[usize])
ug-core/src/layout.rs:121
Method
from_expr
(expr: IndexExpr)
ug-core/src/lang.rs:209
Method
from_instrs
(instrs: Vec<Instr>)
ug-core/src/lang.rs:739
Method
from_shape
(shape: S)
ug-core/src/layout.rs:612
Method
from_slice
(data: D::Slice, s: S)
ug-core/src/lazy_buffer.rs:665
Method
from_str
(s: &str)
ug-core/src/dtype.rs:26
Method
from_usize
(v: usize)
ug-core/src/lang.rs:95
Method
from_varid
(v: ssa::VarId)
ug-core/src/block.rs:26
Method
get
(&self, index: usize)
ug-core/src/lazy_buffer.rs:535
Method
hash
(&self, state: &mut H)
ug-metal/src/runtime.rs:312
Method
hash
(&self, state: &mut H)
ug-core/src/const.rs:26
Function
i32
(v: i32)
ug-pyo3/src/lib.rs:217
Method
i32
()
ug-pyo3/src/lib.rs:84
Method
i64
()
ug-pyo3/src/lib.rs:80
Method
id
(&self)
ug-core/src/lazy_buffer.rs:469
Method
id
(&self)
ug-core/src/block.rs:48
Method
into_ast
(self)
ug-core/src/schedule.rs:15
Method
into_dims
(self)
ug-core/src/layout.rs:130
Method
into_shape
(self, _el_count: usize)
ug-core/src/layout.rs:431
Method
is_contiguous
Returns true if the strides are C contiguous (aka row major).
ug-core/src/layout.rs:162
Method
is_empty
(&self)
ug-metal/src/runtime.rs:200
Method
is_empty
(&self)
ug-core/src/lib.rs:38
Method
is_float
(&self)
ug-core/src/dtype.rs:68
← previous
next →
301–400 of 526, ranked by callers