| 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) {} |
nothing calls this directly
no outgoing calls
no test coverage detected