Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ size
Method
size
csrc/adam/cpu_adam_impl.cpp:400–400 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
398
}
399
400
size_t size() const { return n_; }
401
402
// Split [0, total) into one chunk per thread. Chunk boundaries are rounded up to a
403
// multiple of `align` so each slice's AVX/scalar split lines up with the whole-tensor
Callers
15
transpose_for_scores
Method · 0.45
transpose_key_for_scores
Method · 0.45
forward
Method · 0.45
forward
Method · 0.45
transpose_for_scores
Method · 0.45
transpose_key_for_scores
Method · 0.45
forward
Method · 0.45
forward
Method · 0.45
to_layers
Method · 0.45
__init__
Method · 0.45
dense_to_sparse
Function · 0.45
sparse_to_dense
Function · 0.45
Calls
no outgoing calls
Tested by
15
dense_to_sparse
Function · 0.36
sparse_to_dense
Function · 0.36
reference_implementation
Function · 0.36
reference_implementation
Function · 0.36
reference_implementation
Function · 0.36
reference_implementation
Function · 0.36
test_cuda_post_ln
Function · 0.36
test_dtypes
Function · 0.36
reference_implementation
Function · 0.36
test_cuda_pre_ln
Function · 0.36
test_moe_scatter
Function · 0.36
_assert_secondary_tensor_size
Function · 0.36