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