forked from TensorStack-AI/TensorStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPNDMOptions.cs
More file actions
25 lines (21 loc) · 736 Bytes
/
IPNDMOptions.cs
File metadata and controls
25 lines (21 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
namespace TensorStack.Python.Scheduler
{
public sealed record IPNDMOptions : SchedulerOptions
{
public IPNDMOptions() : base() { }
private IPNDMOptions(IPNDMOptions other) : base(other)
{
ShallowCopyProperties(other);
TrainedBetas = other.TrainedBetas?.ToList();
}
[JsonIgnore]
public override SchedulerType Scheduler => SchedulerType.IPNDM;
[JsonPropertyName("num_train_timesteps")]
public int NumTrainTimesteps { get; init; } = 1000;
[JsonPropertyName("trained_betas")]
public List<float> TrainedBetas { get; set; }
}
}