4 writes to _transformers
Microsoft.ML.Data (4)
DataLoadSave\TransformerChain.cs (4)
89_transformers = transformers?.ToArray() ?? new ITransformer[0]; 108_transformers = new ITransformer[0]; 114_transformers = transformers.ToArray(); 208_transformers = new ITransformer[len];
16 references to _transformers
Microsoft.ML.Data (16)
DataLoadSave\TransformerChain.cs (16)
62bool ITransformer.IsRowToRowMapper => _transformers.All(t => t.IsRowToRowMapper); 64ITransformer[] ITransformerChainAccessor.Transformers => _transformers; 93Contracts.Check((_transformers.Length > 0) == (LastTransformer != null)); 94Contracts.Check(_transformers.Length == _scopes.Length); 169for (int i = 0; i < _transformers.Length; i++) 173xfs.Add(_transformers[i]); 184return new TransformerChain<TNewLast>(_transformers.AppendElement(transformer), _scopes.AppendElement(scope)); 192ctx.Writer.Write(_transformers.Length); 194for (int i = 0; i < _transformers.Length; i++) 198ctx.SaveModel(_transformers[i], dirName); 214ctx.LoadModel<ITransformer, SignatureLoadModel>(env, out _transformers[i], dirName); 217LastTransformer = _transformers[len - 1] as TLastTransformer; 236public IEnumerator<ITransformer> GetEnumerator() => ((IEnumerable<ITransformer>)_transformers).GetEnumerator(); 246IRowToRowMapper[] mappers = new IRowToRowMapper[_transformers.Length]; 250mappers[i] = _transformers[i].GetRowToRowMapper(schema); 264foreach (var transformer in _transformers)