2 implementations of Seed
Microsoft.ML.Core (1)
Environment\HostEnvironmentBase.cs (1)
352public int? Seed { get; }
Microsoft.ML.Data (1)
MLContext.cs (1)
178int? 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)
36var seed = ((IHostEnvironmentInternal)_mainContext.Model.GetEnvironment()).Seed;
Experiment\Experiment.cs (1)
143int? 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)
538seedToUse = seededEnv.Seed;
Microsoft.ML.TorchSharp (12)
AutoFormerV2\ObjectDetectionTrainer.cs (4)
302torch.random.manual_seed(hostInternal.Seed ?? 1); 303torch.cuda.manual_seed(hostInternal.Seed ?? 1); 741torch.random.manual_seed(hostInternal.Seed ?? 1); 742torch.cuda.manual_seed(hostInternal.Seed ?? 1);
Roberta\QATrainer.cs (4)
290torch.random.manual_seed(hostInternal.Seed + Updates ?? 1); 291torch.cuda.manual_seed(hostInternal.Seed + Updates ?? 1); 725torch.random.manual_seed(hostInternal.Seed ?? 1); 726torch.cuda.manual_seed(hostInternal.Seed ?? 1);
TorchSharpBaseTrainer.cs (4)
283torch.random.manual_seed(hostInternal.Seed ?? 1); 284torch.cuda.manual_seed(hostInternal.Seed ?? 1); 464torch.random.manual_seed(hostInternal.Seed ?? 1); 465torch.cuda.manual_seed(hostInternal.Seed ?? 1);