Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KarelPeeters/Kyanite
/ functions
Functions
1,306 in github.com/KarelPeeters/Kyanite
⨍
Functions
1,306
◇
Types & classes
523
↓ 1 callers
Function
convolution
(details: ConvDetails, input: ArrayView4<T>, kernel: ArrayView4<T>)
kn-graph/src/cpu.rs:347
↓ 1 callers
Method
copy_from_as_scalar_op
TODO ideally we would decay to memcpy if possible but callers can already do that, this is this fallback!
kn-cuda-eval/src/device_tensor.rs:73
↓ 1 callers
Method
copy_linear_from_host_async
(&self, buffer: &PinnedMem, stream: &CudaStream)
kn-cuda-sys/src/wrapper/mem/device.rs:114
↓ 1 callers
Method
copy_linear_to_host_async
(&self, buffer: &mut PinnedMem, stream: &CudaStream)
kn-cuda-sys/src/wrapper/mem/device.rs:141
↓ 1 callers
Function
cpu_eval_graph_exec
Evaluate the given graph on the CPU, with the given batch size and inputs, returning the full execution state including profiling information. Prefer
kn-graph/src/cpu.rs:32
↓ 1 callers
Function
cpu_flip
(input: &Tensor<T>, axis: usize)
kn-graph/src/cpu.rs:279
↓ 1 callers
Function
cpu_gather
(input: &Tensor<T>, axis: usize, indices: DTensor)
kn-graph/src/cpu.rs:304
↓ 1 callers
Function
cudaEventCreateWithFlags
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:429
↓ 1 callers
Function
cudaEventDestroy
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:454
↓ 1 callers
Function
cudaEventRecord
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:434
↓ 1 callers
Function
cudaFree
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:464
↓ 1 callers
Function
cudaGetDeviceCount
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:399
↓ 1 callers
Function
cudaGetErrorString
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:389
↓ 1 callers
Function
cudaLaunchDeviceV2_ptsz
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:624
↓ 1 callers
Function
cudaLaunchDevice_ptsz
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:619
↓ 1 callers
Function
cudaStreamDestroy
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:414
↓ 1 callers
Function
cudaStreamWaitEvent
kn-cuda-sys/doc_headers/cuda_include/cuda_device_runtime_api.h:419
↓ 1 callers
Method
current_channels
(&self)
kn-graph/src/optimizer/affine.rs:131
↓ 1 callers
Method
dtype
(&self, graph: &Graph)
kn-graph/src/onnx/typed_value.rs:100
↓ 1 callers
Function
error
()
kn-cuda-sys/build.rs:41
↓ 1 callers
Function
eval_binary_op
(op: BinaryOp, a: SignedSize, b: SignedSize)
kn-graph/src/onnx/load.rs:1477
↓ 1 callers
Method
filter_descriptor
(&self, dtype: cudnnDataType_t)
kn-cuda-eval/src/shape.rs:255
↓ 1 callers
Method
flatten
(&mut self, input: Value, start_axis: usize)
kn-graph/src/graph.rs:705
↓ 1 callers
Method
flip
Flip the given `axis`.
kn-graph/src/graph.rs:802
↓ 1 callers
Method
floor_div
(self, rhs: Self)
kn-graph/src/onnx/typed_value.rs:157
↓ 1 callers
Method
for_each_ptr
TODO report elide lifetimes issue in rust plugin
kn-cuda-eval/src/step.rs:162
↓ 1 callers
Method
get_function_by_name
(&self, name: &str)
kn-cuda-sys/src/wrapper/rtc/core.rs:308
↓ 1 callers
Method
get_prev_sample
( &mut self, sample: Tensor<f32>, timestep: usize, timestep_pr
kn-runtime/examples/stable_diffusion.rs:413
↓ 1 callers
Function
graph_from_onnx_bytes
we use &dyn to avoid duplicate codegen of this large and non-critical function
kn-graph/src/onnx/load.rs:43
↓ 1 callers
Function
graph_to_dot
Render the given graph as a graphviz string. This makes no assumptions about the environment.
kn-graph/src/dot.rs:35
↓ 1 callers
Function
graph_to_svg
Render the given graph as an svg file. This assumes that graphviz is installed and available on the path as `dot`.
kn-graph/src/dot.rs:12
↓ 1 callers
Method
grow_affine_group
(&self, builder: &mut AffineGroupBuilder, operation: &Operation)
kn-graph/src/optimizer/affine.rs:46
↓ 1 callers
Function
has_dense_strides
Whether the given shape covers every value within its data range. This is equivalent to asking whether any possible permutation of the shape with abs
kn-cuda-eval/src/shape.rs:309
↓ 1 callers
Method
has_dense_strides
(&self)
kn-cuda-eval/src/shape.rs:69
↓ 1 callers
Method
index
(&self, axis: usize, index: usize)
kn-cuda-eval/src/offset_tensor.rs:86
↓ 1 callers
Function
infer_batch_size_dims
Same as [infer_batch_size], except for individual dimensions.
kn-graph/src/shape.rs:368
↓ 1 callers
Method
init
(&mut self)
kn-runtime/examples/stable_diffusion.rs:327
↓ 1 callers
Method
input_shapes
(&self)
kn-graph/src/graph.rs:400
↓ 1 callers
Method
is_const_one
(&self, value: Value)
kn-graph/src/graph.rs:485
↓ 1 callers
Function
is_effectively_constant
(graph: &Graph, value: Value)
kn-graph/src/visualize.rs:255
↓ 1 callers
Function
is_entirely
(array: &ArrayBase<S, D>, value: f32)
kn-graph/src/optimizer/affine.rs:348
↓ 1 callers
Method
is_float
(self)
kn-graph/src/dtype.rs:121
↓ 1 callers
Method
is_hidden
(&self, value: Value)
kn-graph/src/graph.rs:416
↓ 1 callers
Method
is_neg
(self)
kn-graph/src/onnx/typed_value.rs:176
↓ 1 callers
Method
is_signed
(self)
kn-graph/src/dtype.rs:117
↓ 1 callers
Method
is_success
(&self)
kn-cuda-sys/src/wrapper/status.rs:14
↓ 1 callers
Function
layernorm
Layernorm along the given axis of the tensor.
kn-graph/src/cpu.rs:461
↓ 1 callers
Function
link_cuda
()
kn-cuda-sys/build.rs:73
↓ 1 callers
Function
link_cuda_docs_rs
()
kn-cuda-sys/build.rs:118
↓ 1 callers
Method
load_external_data
(&mut self, location: &Path, _: usize, _: Option<usize>, _: usize)
kn-graph/src/onnx/external_data.rs:28
↓ 1 callers
Function
load_model_proto
(buf: &[u8])
kn-graph/src/onnx/load.rs:1488
↓ 1 callers
Function
main
()
kn-python/example.py:97
↓ 1 callers
Function
make_cuComplex
kn-cuda-sys/doc_headers/cuda_include/cuComplex.h:300
↓ 1 callers
Function
make_half2
CUDA vector-types compatible vector creation function (note returns __half2, not half2) */
kn-cuda-sys/doc_headers/cuda_include/cuda_fp16.hpp:1559
↓ 1 callers
Method
map_ptrs
(self, mut f: impl FnMut(P) -> K)
kn-cuda-eval/src/step.rs:102
↓ 1 callers
Method
maybe_take_tensor
(&mut self, key: &str)
kn-graph/src/onnx/inputs.rs:182
↓ 1 callers
Method
name
(self)
kn-cuda-sys/src/wrapper/handle.rs:93
↓ 1 callers
Method
old_input
(&self)
kn-graph/src/optimizer/affine.rs:173
↓ 1 callers
Method
output_dtype
(self, x: DType)
kn-graph/src/graph.rs:1613
↓ 1 callers
Method
output_tensors
(self)
kn-graph/src/cpu.rs:526
↓ 1 callers
Method
pad_to
(&mut self, alignment: usize)
kn-cuda-sys/src/wrapper/rtc/args.rs:52
↓ 1 callers
Function
parse_device
(device: &str)
kn-python/src/lib.rs:139
↓ 1 callers
Function
path_is_normal
(path: &Path)
kn-graph/src/onnx/external_data.rs:72
↓ 1 callers
Function
platform
()
kn-cuda-sys/build.rs:15
↓ 1 callers
Function
prefix_line_numbers
(s: &str)
kn-cuda-sys/src/wrapper/rtc/core.rs:322
↓ 1 callers
Function
profile_different_batch_sizes
(device: CudaDevice, graph: &Graph)
kn-cuda-eval/src/bin/profile_net.rs:119
↓ 1 callers
Function
profile_single_batch_size_cpu
(graph: &Graph, batch_size: usize, n: usize)
kn-cuda-eval/src/bin/profile_net.rs:182
↓ 1 callers
Function
profile_single_batch_size_cudnn
(device: CudaDevice, graph: &Graph, batch_size: usize, n: usize, skip_io: bool)
kn-cuda-eval/src/bin/profile_net.rs:146
↓ 1 callers
Method
ptr
(&self)
kn-cuda-sys/src/wrapper/mem/pinned.rs:42
↓ 1 callers
Method
ptr_operands
(&self)
kn-cuda-eval/src/step.rs:98
↓ 1 callers
Function
pull_bias_through_conv
( settings: OptimizerSettings, details: ConvDetails, before: Option<ArcArray1<f32>>, filter: &
kn-graph/src/optimizer/affine.rs:277
↓ 1 callers
Method
push_affine
(&mut self, operation: AffineOperation)
kn-graph/src/optimizer/affine.rs:142
↓ 1 callers
Method
push_int
(&mut self, value: i32)
kn-cuda-sys/src/wrapper/rtc/args.rs:43
↓ 1 callers
Method
rank
(&self)
kn-graph/src/shape.rs:72
↓ 1 callers
Method
realize_step
(&self, step: PlanStep)
kn-cuda-eval/src/planner.rs:1113
↓ 1 callers
Method
record_existing_event
(&self, event: &CudaEvent)
kn-cuda-sys/src/wrapper/handle.rs:155
↓ 1 callers
Method
relu
(&mut self, input: Value)
kn-graph/src/graph.rs:1185
↓ 1 callers
Function
resolve_tensor_type
(ty: &TypeProto, name: &str, index: usize, input_shaper: &InputShaper)
kn-graph/src/onnx/load.rs:1336
↓ 1 callers
Function
run_activation
Run `output = act(input)`. `input` and `output` are allowed to point to the same memory, in which case the operation happens in-place.
kn-cuda-sys/src/wrapper/operation.rs:133
↓ 1 callers
Function
run_cpu_const_operation
(info: &ValueInfo, map: impl FnMut(Value) -> OperationResult)
kn-graph/src/cpu.rs:114
↓ 1 callers
Function
run_cpu_operation
( info: &ValueInfo, map: &IndexMap<Value, CalculatedValue>, inputs: &[DTensor], batch_size: us
kn-graph/src/cpu.rs:99
↓ 1 callers
Method
run_custom
( &self, stream: &CudaStream, tensors: &[DeviceTensor], items_per_thread: u32,
kn-cuda-eval/src/autokernel/scalar.rs:119
↓ 1 callers
Method
set_conv
(&mut self, conv: ConvOperation)
kn-graph/src/optimizer/affine.rs:136
↓ 1 callers
Method
set_external_data
(&mut self, external: Box<dyn ExternalDataLoader>)
kn-graph/src/onnx/loader.rs:86
↓ 1 callers
Method
set_profile
(&mut self, profile: bool)
kn-cuda-eval/src/executor.rs:260
↓ 1 callers
Method
set_timesteps
(&mut self, num_inference_steps: usize, offset: usize)
kn-runtime/examples/stable_diffusion.rs:346
↓ 1 callers
Function
should_show_value
(graph: &Graph, value: Value)
kn-graph/src/visualize.rs:213
↓ 1 callers
Method
single
(index: usize)
kn-graph/src/graph.rs:1560
↓ 1 callers
Method
slice
(&self, axis: usize, range: impl Into<SliceRange>)
kn-cuda-eval/src/offset_tensor.rs:70
↓ 1 callers
Function
softmax
Softmax along the given axis of the tensor. Implementation (and more importantly, the generic bounds) based on softmax within the onnxruntime crate
kn-graph/src/cpu.rs:443
↓ 1 callers
Method
source_with_line_numbers
(&self)
kn-cuda-sys/src/wrapper/rtc/core.rs:317
↓ 1 callers
Function
split_padding
(i: i64, f: i64, s: i64, d: i64, up: bool)
kn-graph/src/onnx/load.rs:1217
↓ 1 callers
Method
step_plms
( &mut self, mut model_output: Tensor<f32>, mut timestep: usize,
kn-runtime/examples/stable_diffusion.rs:369
↓ 1 callers
Method
store_operand_y
(&mut self, operand: &PlanTensor, y: usize)
kn-cuda-eval/src/planner.rs:1076
↓ 1 callers
Method
sub
(&mut self, left: Value, right: Value)
kn-graph/src/graph.rs:1232
↓ 1 callers
Method
sync_after_cublas
(&self)
kn-cuda-eval/src/step.rs:335
↓ 1 callers
Method
sync_before_cublas
(&self)
kn-cuda-eval/src/step.rs:330
↓ 1 callers
Method
take_string
(&mut self, key: &str)
kn-graph/src/onnx/inputs.rs:142
↓ 1 callers
Method
take_tensor
(&mut self, key: &str)
kn-graph/src/onnx/inputs.rs:188
↓ 1 callers
Function
tensor_to_array
(py: Python<'_>, tensor: DTensor)
kn-python/src/lib.rs:113
← previous
next →
401–500 of 1,306, ranked by callers