MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / size

Method size

csrc/adam/cpu_adam_impl.cpp:416–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 size_t size() const { return n_; }
417
418 // Split [0, total) into one chunk per thread. Chunk boundaries are rounded up to a
419 // 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
reference_implementationFunction · 0.45

Calls

no outgoing calls

Tested by 15

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
forwardMethod · 0.36
forwardMethod · 0.36