DeepMLNet / DeepNet

Deep.Net machine learning framework for F#
Apache License 2.0
103 stars 9 forks source link

Loss function result differs from training Loss #30

Open jklanger opened 7 years ago

jklanger commented 7 years ago

Loss evaluated with a separate function: let lossFn = mi.Func<single> (loss) |> arg2 input target

differs from the loss evaluated during training: let trainFn () = Train.train trainable fullDataset trainCfg

When thisoption ist set: SymTensor.Debug.DisableCombineIntoElementsOptimization <- true the results are consistent again!

Tested via DeepPrivate: Z:\DeepPrivate\****Models\bin\Release\****Models.exe Z:\DEVELOP\DeepPrivate\****Models\cfgs\COPYING\LSTM\80reluOutputTest\Config.fsx

Code during training gets optimized differently?

Tested with [band 2277e5e]