1 write to _latentDimAligned
Microsoft.ML.StandardTrainers (1)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
286_latentDimAligned = FieldAwareFactorizationMachineUtils.GetAlignedVectorLength(_latentDim);
13 references to _latentDimAligned
Microsoft.ML.StandardTrainers (13)
FactorizationMachine\FactorizationMachineTrainer.cs (13)
301latentWeightsAligned = new AlignedArray(featureCount * fieldCount * _latentDimAligned, 16); 303latentAccumulatedSquaredGradsAligned = new AlignedArray(featureCount * fieldCount * _latentDimAligned, 16); 314int vBias = j * fieldCount * _latentDimAligned + f * _latentDimAligned; 315for (int k = 0; k < _latentDimAligned; k++) 335int vBias = j * fieldCount * _latentDimAligned + f * _latentDimAligned; 336for (int k = 0; k < _latentDimAligned; k++) 431ch.Check(checked(totalFeatureCount * fieldCount * _latentDimAligned) <= Utils.ArrayMaxSize, "Latent dimension or the number of fields too large"); 462var latentSum = new AlignedArray(fieldCount * fieldCount * _latentDimAligned, 16); 520FieldAwareFactorizationMachineInterface.CalculateIntermediateVariables(fieldCount, _latentDimAligned, count, 525FieldAwareFactorizationMachineInterface.CalculateGradientAndUpdate(_lambdaLinear, _lambdaLatent, _learningRate, fieldCount, _latentDimAligned, weight, count, 539validLoss = CalculateAvgLoss(ch, validData, _norm, linearWeights, latentWeightsAligned, _latentDimAligned, latentSum,