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

Method SetVar

csrc/includes/normalize_layer.h:190–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 inline bool UseMean() const { return config_.useMean; }
189
190 inline void SetVar(T* variance)
191 {
192 if (!variance) { throw std::runtime_error("Normalize variance is null."); }
193 vars = variance;
194 }
195
196 inline void SetMean(T* mean)
197 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected