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

Method Config

csrc/includes/softmax.h:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 float temperature;
26 bool mem_alloc;
27 Config(size_t batch, size_t h, size_t seq, int prob_size = 0, bool mem_alloc = false)
28 : batchSize(batch),
29 heads(h),
30 seq_length(seq),
31 prob_depth(prob_size),
32 temperature(1.0),
33 mem_alloc(mem_alloc)
34 {
35 }
36 };
37
38 Softmax(Config config) : config_(config) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected