@@ -82,7 +82,8 @@ public void Autocast_Case1()
8282 sess . run ( tf . global_variables_initializer ( ) ) ;
8383 var ret = sess . run ( op , feed_dict : ( input , np . array ( 1 , 2 , 3 , 4 , 5 , 6 ) ) ) ;
8484
85- ret . Should ( ) . BeShaped ( 2 , 3 ) . And . BeOfValues ( 1 , 2 , 3 , 4 , 5 , 6 ) ;
85+ Assert . AreEqual ( ret . shape , ( 2 , 3 ) ) ;
86+ Assert . AreEqual ( ret , new [ ] { 1 , 2 , 3 , 4 , 5 , 6 } ) ;
8687 print ( ret . dtype ) ;
8788 print ( ret ) ;
8889 }
@@ -110,7 +111,8 @@ public void Autocast_Case3()
110111 sess . run ( tf . global_variables_initializer ( ) ) ;
111112 var ret = sess . run ( op , feed_dict : ( input , np . array ( 1 , 2 , 3 , 4 , 5 , 6 ) . astype ( np . float32 ) + 0.1f ) ) ;
112113
113- ret . Should ( ) . BeShaped ( 2 , 3 ) . And . BeOfValues ( 1 , 2 , 3 , 4 , 5 , 6 ) ;
114+ Assert . AreEqual ( ret . shape , ( 2 , 3 ) ) ;
115+ Assert . AreEqual ( ret , new [ ] { 1 , 2 , 3 , 4 , 5 , 6 } ) ;
114116 print ( ret . dtype ) ;
115117 print ( ret ) ;
116118 }
@@ -124,7 +126,8 @@ public void Autocast_Case4()
124126 sess . run ( tf . global_variables_initializer ( ) ) ;
125127 var ret = sess . run ( op , feed_dict : ( input , np . array ( 1 , 2 , 3 , 4 , 5 , 6 ) . astype ( np . float32 ) + 0.1f ) ) ;
126128
127- ret . Should ( ) . BeShaped ( 2 , 3 ) . And . BeOfValues ( 1 , 2 , 3 , 4 , 5 , 6 ) ;
129+ Assert . AreEqual ( ret . shape , ( 2 , 3 ) ) ;
130+ Assert . AreEqual ( ret , new [ ] { 1 , 2 , 3 , 4 , 5 , 6 } ) ;
128131 print ( ret . dtype ) ;
129132 print ( ret ) ;
130133 }
0 commit comments