# tensorplay.cuda.tunable.set_max_tuning_samples Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.tunable.set_max_tuning_samples.html ```python tensorplay.cuda.tunable.set_max_tuning_samples(samples: int) → None ``` Bound the timed samples spent measuring one candidate. Zero disables the limit. When both this and [set_max_tuning_duration()](/docs/generated/tensorplay.cuda.tunable.set_max_tuning_duration.html#tensorplay.cuda.tunable.set_max_tuning_duration) are set, the smaller bound wins; a measurement always runs at least one timed sample.