1 write to Dimension
Microsoft.ML.Transforms (1)
Text\WordEmbeddingsExtractor.cs (1)
105Dimension = dimension;
15 references to Dimension
Microsoft.ML.Transforms (15)
Text\WordEmbeddingsExtractor.cs (15)
112ch.Assert(wordVector.Length == Dimension); 125WordVectors.CopyTo(str.Id * Dimension, wordVector, Dimension); 324_outputType = new VectorDataViewType(NumberDataViewType.Single, 3 * _parent._currentVocab.Dimension); 422var shapeD = new long[] { _parent._currentVocab.GetNumWords() + 3, _parent._currentVocab.Dimension }; 427tensorD.AddRange(Enumerable.Repeat(0.0f, _parent._currentVocab.Dimension)); 429tensorD.AddRange(Enumerable.Repeat(float.MaxValue, _parent._currentVocab.Dimension)); 431tensorD.AddRange(Enumerable.Repeat(float.MinValue, _parent._currentVocab.Dimension)); 562int dimension = _parent._currentVocab.Dimension; 563float[] wordVector = new float[_parent._currentVocab.Dimension]; 660dimension = model.Dimension; 671dimension = modelObject.Dimension; 699if (model.Dimension != dimension) 700ch.Warning($"Dimension mismatch while reading model file: '{_modelFileNameWithPath}', line number {parsedLine.lineNumber}, expected dimension = {model.Dimension}, received dimension = {dimension}"); 711if (model.Dimension == dimension)