Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TuckerBMorgan/can-t
/ functions
Functions
825 in github.com/TuckerBMorgan/can-t
⨍
Functions
825
◇
Types & classes
48
Function
cat_forward_appends_along_axis
()
src/central/cat_op.rs:133
Function
chunk_backward_injects_gradients_in_correct_slice
()
src/central/chunk_op.rs:115
Function
chunk_forward_splits_evenly
()
src/central/chunk_op.rs:99
Function
clamp_backward_masks_outside_bounds
()
src/central/clamp_op.rs:71
Function
clamp_forward_handles_fractional_bounds
()
src/central/clamp_op.rs:58
Function
clip_gradients
(max_norm: f32)
src/central/mod.rs:104
Method
cmp
(&self, other: &Self)
src/central/topk_op.rs:32
Function
complicated_broadcast_test
()
src/central/shape.rs:615
Function
complicated_matmul_test_shape
()
src/central/shape.rs:625
Function
compute_cos_sin_returns_outer_product_shape
()
src/nn/rotary_embedding.rs:130
Method
compute_strides_row_major
(&self)
src/central/shape.rs:498
Function
cos_backward_matches_negative_sine
()
src/central/cos_op.rs:56
Function
cos_backward_scales_with_incoming_gradient
()
src/central/cos_op.rs:85
Function
cos_forward_matches_reference_values
()
src/central/cos_op.rs:71
Method
create_tensor_data_and_shape_and_operation
Utility function for create a tensor with data, shape and operation # Arugments 'shape' - the shape of the tensor 'data' - the data
src/central/tensor.rs:283
Function
decode_gpt2_tokens
(s: &str)
src/nn/gpt2.rs:178
Method
default
()
src/optimizers/adamw.rs:19
Method
default
()
src/optimizers/adam.rs:19
Method
default
()
src/central/debugging.rs:14
Function
diagonal_backward
()
src/central/diagonal_op.rs:287
Function
diagonal_backward_batched
()
src/central/diagonal_op.rs:308
Function
diagonal_forward_2d_offset
()
src/central/diagonal_op.rs:237
Function
diagonal_forward_3d
()
src/central/diagonal_op.rs:262
Function
diagonal_forward_batched_axes
()
src/central/diagonal_op.rs:276
Function
diagonal_forward_zero_offset
()
src/central/diagonal_op.rs:251
Function
diagonal_invalid_offset_panics
()
src/central/diagonal_op.rs:332
Method
dim_list_to_bitset
(summed_dimensions: &Vec<usize>)
src/central/einsum.rs:5
Function
dimension_length_zero_returns_empty
()
src/central/topk_op.rs:259
Method
div
(self, rhs: Self)
src/central/mul_op.rs:47
Function
div_f32_test
()
src/central/mul_op.rs:231
Function
do_not_add_tensors_of_different_size_but_same_length
()
src/central/add_op.rs:188
Function
do_not_mul_tensors_of_different_size_but_same_length
()
src/central/mul_op.rs:194
Method
einsum
Adapated from https://github.com/pytorch/pytorch/blob/0e083942ccd98c5a2d9386f0b2c4bbc901be40ef/aten/src/ATen/native/Linear.cpp einsum function
src/central/einsum.rs:160
Method
element
Allocates a new tensor with provided shape, where each element is element # Arugments 'shape' - The shape of the allocated tensor 'element' - The valu
src/central/tensor.rs:229
Function
element_test
()
src/central/tensor.rs:409
Method
eq
(&self, other: &Self)
src/central/topk_op.rs:16
Function
f32_mul_test
()
src/central/mul_op.rs:249
Method
forward
(&mut self, mut inputs: Tensor)
src/nn/relu.rs:13
Method
forward
(&mut self, x: Tensor)
src/nn/gelu.rs:13
Method
forward
(&mut self, x: Tensor)
src/nn/swiglu.rs:17
Method
forward
(&mut self, inputs: Tensor)
examples/gpt-oss.rs:87
Method
from
(modules: Vec<Box<dyn Layer>>)
src/nn/sequential.rs:35
Method
from
(value: [usize; 1])
src/central/index.rs:15
Method
from_gguf_file
( gguf_file: &mut GGUFFile, block_count: i64, config: &GPT2Config, )
src/nn/multihead_attention.rs:51
Method
from_gguf_file
Creates a Linear layer from a GGUF file by loading weight and bias tensors # Arguments `weight_tensor_name` - The name of the weight tensor in the GGU
src/nn/linear.rs:37
Method
from_gguf_file
(gguf_file: &mut GGUFFile)
src/nn/gpt2.rs:29
Method
from_gguf_file
( gguf_file: &mut GGUFFile, block_count: i64, gpt_config: &GPT2Config, )
src/nn/gpt_block.rs:54
Method
from_gguf_file
( gguf_file: &mut GGUFFile, weight_name: String, bias_name: String, )
src/nn/layer_norm.rs:21
Method
from_gguf_file
Loads a tensor from a GGUF file # Arugments 'tensor_name' - The name of the tensor in the file 'gguf_file' - the data struct that wraps the file we wi
src/central/tensor.rs:182
Method
from_tensor
(mut weights: Tensor)
src/nn/embedding.rs:16
Method
from_tensors
(mut weights: Tensor, mut bias: Option<Tensor>)
src/nn/linear.rs:24
Method
from_vec
Creates a tensor from a vector of data with specified shape # Arguments 'data' - The vector of f32 values to populate the tensor 'shape_dims' - The di
src/central/tensor.rs:258
Function
gather_backward_accumulates_duplicate_indices
()
src/central/gather_op.rs:392
Function
gather_backward_dimension_two_accumulates_counts
()
src/central/gather_op.rs:228
Function
gather_backward_leaves_unselected_elements_at_zero
()
src/central/gather_op.rs:262
Function
gather_backward_one_dimensional_tensor_accumulates_duplicates
()
src/central/gather_op.rs:280
Function
gather_backward_row_dimension_scatter_adds
()
src/central/gather_op.rs:373
Function
gather_handles_middle_dimension_on_three_dimensional_input
()
src/central/gather_op.rs:195
Function
gather_handles_one_dimensional_inputs
()
src/central/gather_op.rs:179
Function
gather_handles_three_dimensional_inputs
()
src/central/gather_op.rs:352
Function
gather_panics_when_dimension_out_of_range
()
src/central/gather_op.rs:299
Function
gather_panics_when_index_rank_differs_from_input
()
src/central/gather_op.rs:308
Function
gather_preserves_shape_when_index_matches_input_rank
()
src/central/gather_op.rs:164
Function
gather_respects_column_indices
()
src/central/gather_op.rs:334
Function
gather_respects_row_indices
()
src/central/gather_op.rs:316
Function
gather_shuffles_columns_when_dimension_is_one
()
src/central/gather_op.rs:147
Function
gather_swaps_rows_when_index_targets_dimension_zero
()
src/central/gather_op.rs:130
Method
get_parameters
(&self)
src/nn/multihead_attention.rs:209
Method
get_parameters
(&self)
src/nn/gpt2.rs:157
Method
get_parameters
(&self)
src/nn/relu.rs:17
Method
get_parameters
(&self)
src/nn/gelu.rs:26
Method
get_parameters
(&self)
src/nn/tanh.rs:17
Method
get_parameters
(&self)
src/nn/swiglu.rs:43
Method
get_parameters
(&self)
examples/autoencoder.rs:131
Method
get_parameters
(&self)
examples/gpt-oss.rs:115
Method
gpt2_small
()
src/nn/gpt2.rs:17
Function
k_equals_dimension_length_returns_all_sorted_per_column
()
src/central/topk_op.rs:296
Function
k_zero_returns_empty
()
src/central/topk_op.rs:243
Function
l1_loss_backward_produces_sign_gradients
()
src/central/l1_loss.rs:93
Function
l1_loss_backward_respects_mean_reduction_factor
()
src/central/l1_loss.rs:135
Function
l1_loss_backward_zero_difference_leaves_grads_zero
()
src/central/l1_loss.rs:115
Function
l1_loss_is_zero_when_tensors_equal
()
src/central/l1_loss.rs:57
Function
l1_loss_matches_manual_mae_for_batched_tensor
()
src/central/l1_loss.rs:69
Function
l1_loss_matches_manual_mae_for_vector
()
src/central/l1_loss.rs:32
Function
l1_loss_reduces_across_all_dimensions
()
src/central/l1_loss.rs:44
Method
label_to_subscript
(label: u8)
src/central/einsum.rs:166
Function
linear_index_detects_stride_overflow
()
src/central/gather_op.rs:122
Function
linear_index_refuses_overflowing_multiplication
()
src/central/gather_op.rs:110
Function
linear_index_rejects_dimension_mismatch
()
src/central/gather_op.rs:100
Function
linear_index_rejects_out_of_bounds_points
()
src/central/gather_op.rs:105
Function
linear_index_respects_row_major_layout
()
src/central/gather_op.rs:95
Function
linear_index_returns_expected_value_for_three_dimensions
()
src/central/gather_op.rs:117
Function
ln_f_hook
(_, inp, out)
debug_gradients.py:34
Method
load_data_basic
()
src/utils/data_set.rs:33
Function
log_1d_backward_test
()
src/central/log.rs:204
Function
log_2d_backward_test
()
src/central/log.rs:230
Function
log_2d_test
()
src/central/log.rs:69
Function
log_3d_backward_test
()
src/central/log.rs:257
Function
log_3d_test
()
src/central/log.rs:93
Function
log_4d_test
()
src/central/log.rs:114
← previous
next →
301–400 of 825, ranked by callers