Exemplo n.º 1
0
 public void CheckShapeOnSimpleTensor()
 {
     using (var tensor = new TFTensor(123))
     {
         var exception = Assert.Throws <ArgumentException> (() => tensor.CheckShape(new [] { 123 }));
         Assert.Equal("This tensor has 0 dimensions, the given array has 1", exception.Message);
     }
 }
Exemplo n.º 2
0
 public void CheckShape(Array tensorArray, Array checkArray, String expected)
 {
     using (var tensor = new TFTensor(tensorArray))
         AssertCheck(() => tensor.CheckShape(checkArray), expected);
 }