@@ -117,12 +117,13 @@ public static Action<PaddleConfig> TensorRt(Dictionary<string, TensorRtDynamicSh
117
117
}
118
118
119
119
/// <summary>
120
- /// Creates an action that sets up a Paddle configuration for using OpenBLAS on the CPU.
120
+ /// Creates an action that sets up a Paddle configuration for using BLAS on the CPU.
121
121
/// </summary>
122
122
/// <param name="cpuMathThreadCount">The number of CPU math threads to use. Default value is 0.</param>
123
123
/// <param name="memoryOptimized">Whether to use memory optimized mode. Default value is true.</param>
124
124
/// <param name="glogEnabled">Whether to enable GLog. Default value is false.</param>
125
125
/// <returns>The openblas paddle device definition.</returns>
126
+ [ Obsolete ( "Use Blas instead." ) ]
126
127
public static Action < PaddleConfig > Openblas ( int cpuMathThreadCount = 0 , bool memoryOptimized = true , bool glogEnabled = false )
127
128
{
128
129
return cfg =>
@@ -132,6 +133,22 @@ public static Action<PaddleConfig> Openblas(int cpuMathThreadCount = 0, bool mem
132
133
} ;
133
134
}
134
135
136
+ /// <summary>
137
+ /// Creates an action that sets up a Paddle configuration for using BLAS on the CPU.
138
+ /// </summary>
139
+ /// <param name="cpuMathThreadCount">The number of CPU math threads to use. Default value is 0.</param>
140
+ /// <param name="memoryOptimized">Whether to use memory optimized mode. Default value is true.</param>
141
+ /// <param name="glogEnabled">Whether to enable GLog. Default value is false.</param>
142
+ /// <returns>The openblas paddle device definition.</returns>
143
+ public static Action < PaddleConfig > Blas ( int cpuMathThreadCount = 0 , bool memoryOptimized = true , bool glogEnabled = false )
144
+ {
145
+ return cfg =>
146
+ {
147
+ cfg . CpuMathThreadCount = cpuMathThreadCount ;
148
+ CommonAction ( cfg , memoryOptimized , glogEnabled ) ;
149
+ } ;
150
+ }
151
+
135
152
/// <summary>
136
153
/// Returns an Action delegate that configures PaddleConfig for use with Onnx.
137
154
/// </summary>
0 commit comments