Skip to content

Commit 4d7d8ef

Browse files
committed
Fixed errors by making CfltAlign static (and read-only)
1 parent 40528e4 commit 4d7d8ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.ML.Transforms/RffTransform.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private static VersionInfo GetVersionInfo()
227227
private readonly TransformInfo[] _transformInfos;
228228

229229
private const string RegistrationName = "Rff";
230-
private readonly int _cfltAlign;
230+
private static readonly int _cfltAlign = CpuMathUtils.GetVectorAlignment() / sizeof(float);
231231

232232
private static string TestColumnType(ColumnType type)
233233
{
@@ -251,7 +251,6 @@ public RffTransform(IHostEnvironment env,
251251
string source = null)
252252
: this(env, new Arguments() { Column = new[] { new Column() { Source = source ?? name, Name = name } }, NewDim = newDim }, input)
253253
{
254-
_cfltAlign = CpuMathUtils.GetVectorAlignment() / sizeof(float);
255254
}
256255

257256
/// <summary>

0 commit comments

Comments
 (0)