14 references to _units
Microsoft.ML.Tokenizers.Tests (14)
src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (14)
299public uint Child(uint id) => _units[(int)id].Child; 301public uint Sibling(uint id) => _units[(int)id].HasSibling ? id + 1 : 0; 303public int Value(uint id) => _units[(int)id].Value; 314public int Size => _units.Size; 333_units[0] = _nodes[0].Unit; 424_units.Append(); 448for (int i = 1; i < _units.Size; ++i) 451if (_labels[i] == 0 || _units[i].IsState) 476if (!_units[(int)unitId].HasSibling) 484if (_units[(int)unitId].HasSibling) 491if (_nodes[(int)i].Unit != _units[(int)unitId].Unit || _nodes[(int)i].Label != _labels[(int)unitId]) 525uint unit = _units[(int)id].Unit; 529if (!_units[(int)id].HasSibling) 584_units[(int)unitId] = _nodes[(int)i].Unit;