1 instantiation of NormStr
Microsoft.ML.Core (1)
Utilities\NormStr.cs (1)
232NormStr ns = new NormStr(str, _cns, hash);
27 references to NormStr
Microsoft.ML.Core (24)
Data\ModelHeader.cs (3)
129public static void EndWrite(BinaryWriter writer, long fpMin, ref ModelHeader header, NormStr.Pool pool = null, string loaderAssemblyName = null) 150foreach (var ns in pool) 161foreach (var ns in pool)
Data\ModelSaveContext.cs (3)
47internal readonly NormStr.Pool Strings; 95Strings = new NormStr.Pool(); 131Strings = new NormStr.Pool();
Utilities\NormStr.cs (18)
42public sealed class Pool : IEnumerable<NormStr> 50private NormStr[] _rgns; 93public NormStr Get(string str, bool add = false) 108var ns = GetNs(ins); 119public NormStr Get(ReadOnlyMemory<char> str, bool add = false, bool duplicateStr = true) 131var ns = GetNs(ins); 154public NormStr Add(string str) 159public NormStr Add(ReadOnlyMemory<char> str, bool duplicateStr = true) 167public NormStr Get(StringBuilder sb, bool add = false) 176NormStr ns; 204public NormStr Add(StringBuilder sb) 212private NormStr AddCore(ReadOnlyMemory<char> str, uint hash) 221_rgns = new NormStr[10]; 232NormStr ns = new NormStr(str, _cns, hash); 245public NormStr GetNormStrById(int id) 251private NormStr GetNs(int ins) 270var ns = GetNs(ins); 279public IEnumerator<NormStr> GetEnumerator()
Microsoft.ML.Data (3)
Transforms\ValueToKeyMappingTransformerImpl.cs (3)
131var nstr = sortedPool.Add(_pool.GetNormStrById(perm[i]).Value); 609var nstr = pool.Add(ctx.LoadNonEmptyString()); 642var nstr = _pool.Get(src);