| | 1 | | using System.Diagnostics.CodeAnalysis; |
| | 2 | | using System.Text.Json.Serialization; |
| | 3 | | using Spdx3.Serialization; |
| | 4 | | using Spdx3.Utility; |
| | 5 | |
|
| | 6 | | namespace Spdx3.Model.AI.Classes; |
| | 7 | |
|
| | 8 | | public class EnergyConsumption : BaseModelClass |
| | 9 | | { |
| | 10 | | [JsonPropertyName("ai_finetuningEnergyConsumption")] |
| | 11 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 8 | 12 | | public IList<EnergyConsumptionDescription> FinetuningEnergyConsumption { get; set; } = |
| 4 | 13 | | new List<EnergyConsumptionDescription>(); |
| | 14 | |
|
| | 15 | | [JsonPropertyName("ai_inferenceEnergyConsumption")] |
| | 16 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 8 | 17 | | public IList<EnergyConsumptionDescription> InferenceEnergyConsumption { get; set; } = |
| 4 | 18 | | new List<EnergyConsumptionDescription>(); |
| | 19 | |
|
| | 20 | | [JsonPropertyName("ai_trainingEnergyConsumption")] |
| | 21 | | [JsonConverter(typeof(SpdxModelConverterFactory))] |
| 7 | 22 | | public IList<EnergyConsumptionDescription> TrainingEnergyConsumption { get; set; } = |
| 4 | 23 | | new List<EnergyConsumptionDescription>(); |
| | 24 | |
|
| | 25 | | // protected internal no-parm constructor required for deserialization |
| | 26 | | #pragma warning disable CS8618, CS9264 |
| 2 | 27 | | protected internal EnergyConsumption() |
| | 28 | | { |
| 2 | 29 | | } |
| | 30 | | #pragma warning restore CS8618, CS9264 |
| | 31 | |
|
| | 32 | | [SetsRequiredMembers] |
| 2 | 33 | | public EnergyConsumption(Catalog catalog) : base(catalog) |
| | 34 | | { |
| 2 | 35 | | } |
| | 36 | | } |