2 implementations of Seed
Microsoft.ML.Core (1)
Environment\HostEnvironmentBase.cs (1)
352
public int?
Seed
{ get; }
Microsoft.ML.Data (1)
MLContext.cs (1)
178
int? IHostEnvironmentInternal.
Seed
=> _env.Seed;
17 references to Seed
Microsoft.ML.AutoML (3)
AutoMLExperiment\AutoMLExperiment.cs (1)
47
_settings.Seed = ((IHostEnvironmentInternal)_context.Model.GetEnvironment()).
Seed
;
AutoMLExperiment\IMLContextManager.cs (1)
36
var seed = ((IHostEnvironmentInternal)_mainContext.Model.GetEnvironment()).
Seed
;
Experiment\Experiment.cs (1)
143
int? mainContextSeed = ((IHostEnvironmentInternal)_context.Model.GetEnvironment()).
Seed
;
Microsoft.ML.AutoML.Tests (1)
MLContextManagerTests.cs (1)
40
((IHostEnvironmentInternal)childContext.Model.GetEnvironment()).
Seed
.Should().Be(10);
Microsoft.ML.Data (1)
DataLoadSave\DataOperationsCatalog.cs (1)
538
seedToUse = seededEnv.
Seed
;
Microsoft.ML.TorchSharp (12)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
302
torch.random.manual_seed(hostInternal.
Seed
?? 1);
303
torch.cuda.manual_seed(hostInternal.
Seed
?? 1);
741
torch.random.manual_seed(hostInternal.
Seed
?? 1);
742
torch.cuda.manual_seed(hostInternal.
Seed
?? 1);
Roberta\QATrainer.cs (4)
290
torch.random.manual_seed(hostInternal.
Seed
+ Updates ?? 1);
291
torch.cuda.manual_seed(hostInternal.
Seed
+ Updates ?? 1);
725
torch.random.manual_seed(hostInternal.
Seed
?? 1);
726
torch.cuda.manual_seed(hostInternal.
Seed
?? 1);
TorchSharpBaseTrainer.cs (4)
283
torch.random.manual_seed(hostInternal.
Seed
?? 1);
284
torch.cuda.manual_seed(hostInternal.
Seed
?? 1);
464
torch.random.manual_seed(hostInternal.
Seed
?? 1);
465
torch.cuda.manual_seed(hostInternal.
Seed
?? 1);