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

Method ForwardCheckpoint

csrc/includes/normalize_layer.h:49–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 ~Normalize_Layer() {}
48
49 void ForwardCheckpoint(int bsz, // batch * seq
50 T* vals,
51 const T* residual,
52 const T* gamma,
53 const T* betta,
54 cudaStream_t& stream,
55 bool preLayerNorm = false)
56 {
57 launch_bias_residual_layer_norm(vals,
58 residual,
59 gamma,
60 betta,
61 config_.epsilon,
62 bsz,
63 config_.hiddenDim,
64 stream,
65 preLayerNorm,
66 config_.training,
67 vars,
68 means);
69 }
70
71 void Forward(int bsz,
72 T* vals,

Callers 1

ForwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected