2 instantiations of ValueCreatorCache
Microsoft.ML.Data (2)
DataLoadSave\Text\TextLoaderParser.cs (2)
40
Interlocked.CompareExchange(ref _defaultInstance, new
ValueCreatorCache
(), null) ??
51
return _customInstances.GetOrAdd(doubleParserOptionFlags, new
ValueCreatorCache
(doubleParserOptionFlags));
12 references to ValueCreatorCache
Microsoft.ML.Data (12)
DataLoadSave\Text\TextLoaderParser.cs (12)
28
private static readonly FuncInstanceMethodInfo1<
ValueCreatorCache
, PrimitiveDataViewType, Func<RowSet, ColumnPipe>> _getCreatorOneCoreMethodInfo
29
= FuncInstanceMethodInfo1<
ValueCreatorCache
, PrimitiveDataViewType, Func<RowSet, ColumnPipe>>.Create(target => target.GetCreatorOneCore<int>);
31
private static readonly FuncInstanceMethodInfo1<
ValueCreatorCache
, PrimitiveDataViewType, Func<RowSet, ColumnPipe>> _getCreatorVecCoreMethodInfo
32
= FuncInstanceMethodInfo1<
ValueCreatorCache
, PrimitiveDataViewType, Func<RowSet, ColumnPipe>>.Create(target => target.GetCreatorVecCore<int>);
34
private static volatile
ValueCreatorCache
_defaultInstance;
35
public static
ValueCreatorCache
DefaultInstance
45
private static readonly ConcurrentDictionary<DoubleParser.OptionFlags,
ValueCreatorCache
> _customInstances
46
= new ConcurrentDictionary<DoubleParser.OptionFlags,
ValueCreatorCache
>();
48
public static
ValueCreatorCache
GetInstanceWithDoubleParserOptionFlags(DoubleParser.OptionFlags doubleParserOptionFlags)
680
ValueCreatorCache
cache;
689
cache =
ValueCreatorCache
.DefaultInstance;
691
cache =
ValueCreatorCache
.GetInstanceWithDoubleParserOptionFlags(doubleParserOptionFlags);