MCPcopy 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_scoresMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
transpose_for_scoresMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
to_layersMethod · 0.45
__init__Method · 0.45
dense_to_sparseFunction · 0.45
sparse_to_denseFunction · 0.45

Calls

no outgoing calls

Tested by 15

dense_to_sparseFunction · 0.36
sparse_to_denseFunction · 0.36
reference_implementationFunction · 0.36
reference_implementationFunction · 0.36
reference_implementationFunction · 0.36
reference_implementationFunction · 0.36
test_cuda_post_lnFunction · 0.36
test_dtypesFunction · 0.36
reference_implementationFunction · 0.36
test_cuda_pre_lnFunction · 0.36
test_moe_scatterFunction · 0.36