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)
583Assert.Equal(2, type.Dimensions.Length);
584Assert.Equal(28, type.Dimensions[0]);
585Assert.Equal(28, type.Dimensions[1]);
597Assert.Equal(new[] { 5, 5, 1, 32 }, type.Dimensions);
612Assert.Equal(new[] { 28, 28, 32 }, type.Dimensions);
627Assert.Equal(new[] { 10 }, type.Dimensions);
646Assert.Equal(new[] { 2, 2 }, type.Dimensions);
1006var imageHeight = type.Dimensions[0];
1007var imageWidth = type.Dimensions[1];
1065var imageHeight = type.Dimensions[0];
1066var imageWidth = type.Dimensions[1];
1109var imageHeight = type.Dimensions[0];
1110var imageWidth = type.Dimensions[1];
Microsoft.ML.Tests (2)
Microsoft.ML.Transforms (8)
Microsoft.ML.Vision (4)