Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit db4ac87

Browse files
committed
Add missing interface property, remove spurious field modifiers
1 parent f335cd1 commit db4ac87

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

OnnxStack.Core/Config/IOnnxModelSetConfig.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ namespace OnnxStack.Core.Config
55
{
66
public interface IOnnxModelSetConfig : IOnnxModel
77
{
8-
public int DeviceId { get; set; }
9-
public string OnnxModelPath { get; set; }
10-
public int InterOpNumThreads { get; set; }
11-
public int IntraOpNumThreads { get; set; }
12-
public ExecutionMode ExecutionMode { get; set; }
13-
public ExecutionProvider ExecutionProvider { get; set; }
8+
bool IsEnabled { get; set; }
9+
int DeviceId { get; set; }
10+
string OnnxModelPath { get; set; }
11+
int InterOpNumThreads { get; set; }
12+
int IntraOpNumThreads { get; set; }
13+
ExecutionMode ExecutionMode { get; set; }
14+
ExecutionProvider ExecutionProvider { get; set; }
1415
List<OnnxModelSessionConfig> ModelConfigurations { get; set; }
1516
}
1617
}

OnnxStack.StableDiffusion/Config/ModelOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class ModelOptions : IModelOptions, IOnnxModelSetConfig
1717
public float ScaleFactor { get; set; }
1818
public ImmutableArray<int> BlankTokenValueArray { get; set; }
1919

20+
public bool IsEnabled { get; set; }
2021
public int DeviceId { get; set; }
2122
public string OnnxModelPath { get; set; }
2223
public int InterOpNumThreads { get; set; }

0 commit comments

Comments
 (0)