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

Method Forward

csrc/includes/softmax.h:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 ~Softmax() {}
41
42 void Forward(int bsz, T* vals, const T* attn_mask, cudaStream_t& stream)
43 {
44 launch_attn_softmax<T>(vals, attn_mask, bsz, config_.heads, config_.seq_length, stream);
45 }
46
47 void Backward(int bsz, T* out_grad, const T* soft_out, cudaStream_t stream)
48 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected