4 writes to _modelFileNameWithPath
Microsoft.ML.Transforms (4)
Text\WordEmbeddingsExtractor.cs (4)
190_modelFileNameWithPath = EnsureModelFile(env, out _linesToSkip, (WordEmbeddingEstimator.PretrainedModelKind)_modelKind); 208_modelFileNameWithPath = customModelFile; 255_modelFileNameWithPath = ctx.LoadNonEmptyString(); 261_modelFileNameWithPath = EnsureModelFile(Host, out _linesToSkip, (WordEmbeddingEstimator.PretrainedModelKind)_modelKind);
16 references to _modelFileNameWithPath
Microsoft.ML.Transforms (16)
Text\WordEmbeddingsExtractor.cs (16)
264Host.CheckNonWhiteSpace(_modelFileNameWithPath, nameof(_modelFileNameWithPath)); 294ctx.SaveString(_modelFileNameWithPath); 653if (!File.Exists(_modelFileNameWithPath)) 654throw Host.Except("Custom word embedding model file '{0}' could not be found for Word Embeddings transform.", _modelFileNameWithPath); 656if (_vocab.ContainsKey(_modelFileNameWithPath) && _vocab[_modelFileNameWithPath] != null) 658if (_vocab[_modelFileNameWithPath].TryGetTarget(out Model model)) 667if (_vocab.ContainsKey(_modelFileNameWithPath) && _vocab[_modelFileNameWithPath] != null) 669if (_vocab[_modelFileNameWithPath].TryGetTarget(out Model modelObject)) 682Parallel.ForEach(File.ReadLines(_modelFileNameWithPath).Skip(skippedLinesCount), GetParallelOptions(hostEnvironment), 690ch.Warning($"Parsing error while reading model file: '{_modelFileNameWithPath}', line number {lineNumber + skippedLinesCount}"); 700ch.Warning($"Dimension mismatch while reading model file: '{_modelFileNameWithPath}', line number {parsedLine.lineNumber}, expected dimension = {model.Dimension}, received dimension = {dimension}"); 706var firstLine = File.ReadLines(_modelFileNameWithPath).First(); 720_vocab[_modelFileNameWithPath] = new WeakReference<Model>(model, false);