File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public interface IAsyncSweeper
63
63
/// Expose existing <see cref="ISweeper"/>s as <see cref="IAsyncSweeper"/> with no synchronization over the past runs.
64
64
/// Nelder-Mead requires synchronization so is not compatible with SimpleAsyncSweeperBase.
65
65
/// </summary>
66
- public class SimpleAsyncSweeper : IAsyncSweeper , IDisposable
66
+ public partial class SimpleAsyncSweeper : IAsyncSweeper , IDisposable
67
67
{
68
68
private readonly List < IRunResult > _results ;
69
69
private readonly object _lock ;
@@ -85,6 +85,16 @@ private SimpleAsyncSweeper(ISweeper baseSweeper)
85
85
_results = new List < IRunResult > ( ) ;
86
86
}
87
87
88
+ public SimpleAsyncSweeper ( IHostEnvironment env , UniformRandomSweeper . ArgumentsBase args )
89
+ : this ( new UniformRandomSweeper ( env , args ) )
90
+ {
91
+ }
92
+
93
+ public SimpleAsyncSweeper ( IHostEnvironment env , RandomGridSweeper . Arguments args )
94
+ : this ( new UniformRandomSweeper ( env , args ) )
95
+ {
96
+ }
97
+
88
98
public void Update ( int id , IRunResult result )
89
99
{
90
100
Contracts . CheckParam ( 0 <= id && id < _numGenerated , nameof ( id ) , "Invalid run id" ) ;
You can’t perform that action at this time.
0 commit comments