(val1, val2, boolean)
| 317 | |
| 318 | |
| 319 | def switch(val1, val2, boolean): |
| 320 | |
| 321 | boolean = boolean.type_as(val1) |
| 322 | return (1 - boolean) * val1 + boolean * val2 |
| 323 | |
| 324 | |
| 325 | def sample_sequence_batch(model, context_tokens, context_lengths, |
no outgoing calls
no test coverage detected