3 writes to Dimensions
Microsoft.ML.DataView (3)
70 references to Dimensions
Microsoft.ML.Data (12)
Microsoft.ML.DataView (19)
VectorType.cs (19)
26/// In the case where this is a multi-dimensional type, that is, a situation where <see cref="Dimensions"/>
29/// dimensions. We consider that the last dimension is the most "minor" index. In the case where <see cref="Dimensions"/>
56/// <param name="dimensions">The dimensions. Note that, like <see cref="Dimensions"/>, must be non-empty, with all
57/// non-negative values. Also, because <see cref="Size"/> is the product of <see cref="Dimensions"/>, the result of
67Size = ComputeSize(Dimensions);
74/// <param name="dimensions">The dimensions. Note that, like <see cref="Dimensions"/>, must be non-empty, with all
75/// non-negative values. Also, because <see cref="Size"/> is the product of <see cref="Dimensions"/>, the result of
85Size = ComputeSize(Dimensions);
117/// Note that this is always the product of the elements in <see cref="Dimensions"/>.
131if (Dimensions.Length != tmp.Dimensions.Length)
133for (int i = 0; i < Dimensions.Length; i++)
135if (Dimensions[i] != tmp.Dimensions[i])
149hash = Hashing.CombineHash(hash, Dimensions.Length);
150for (int i = 0; i < Dimensions.Length; i++)
151hash = Hashing.CombineHash(hash, Dimensions[i].GetHashCode());
160if (Dimensions.Length == 1)
167foreach (var dim in Dimensions)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.OnnxConverter (2)
Microsoft.ML.Samples (2)
Microsoft.ML.Samples.GPU (2)
Microsoft.ML.TensorFlow (2)
Microsoft.ML.TensorFlow.Tests (15)
TensorflowTests.cs (13)
584Assert.Equal(2, type.Dimensions.Length);
585Assert.Equal(28, type.Dimensions[0]);
586Assert.Equal(28, type.Dimensions[1]);
598Assert.Equal(new[] { 5, 5, 1, 32 }, type.Dimensions);
613Assert.Equal(new[] { 28, 28, 32 }, type.Dimensions);
628Assert.Equal(new[] { 10 }, type.Dimensions);
647Assert.Equal(new[] { 2, 2 }, type.Dimensions);
1007var imageHeight = type.Dimensions[0];
1008var imageWidth = type.Dimensions[1];
1066var imageHeight = type.Dimensions[0];
1067var imageWidth = type.Dimensions[1];
1110var imageHeight = type.Dimensions[0];
1111var imageWidth = type.Dimensions[1];
Microsoft.ML.Tests (2)
Microsoft.ML.Transforms (8)
Microsoft.ML.Vision (4)