@@ -53,9 +53,9 @@ public void withDeviceMethod() {
53
53
.abs (aOps )
54
54
.asOutput ();
55
55
56
- try (AutoCloseableList <Tensor <?> > t =
56
+ try (AutoCloseableList <Tensor > t =
57
57
new AutoCloseableList <>(session .runner ().fetch (absOps ).run ())) {
58
- assertEquals (1 , t .get (0 ). rawData (). asInts (). getObject ( 0 ));
58
+ assertEquals (1 , (( TInt32 ) t .get (0 )). getInt ( ));
59
59
}
60
60
}
61
61
}
@@ -85,9 +85,9 @@ public void withEmptyDeviceSpec() {
85
85
.abs (aOps )
86
86
.asOutput ();
87
87
88
- try (AutoCloseableList <Tensor <?> > t =
88
+ try (AutoCloseableList <Tensor > t =
89
89
new AutoCloseableList <>(session .runner ().fetch (absOps ).run ())) {
90
- assertEquals (1 , t .get (0 ). rawData (). asInts (). getObject ( 0 ));
90
+ assertEquals (1 , (( TInt32 ) t .get (0 )). getInt ( ));
91
91
}
92
92
}
93
93
}
@@ -131,9 +131,9 @@ public void withTwoScopes() {
131
131
.mul (absOps , bOps )
132
132
.asOutput ();
133
133
134
- try (AutoCloseableList <Tensor <?> > t =
134
+ try (AutoCloseableList <Tensor > t =
135
135
new AutoCloseableList <>(session .runner ().fetch (mulOps ).run ())) {
136
- assertEquals (10 , t .get (0 ). rawData (). asInts (). getObject ( 0 ));
136
+ assertEquals (10 , (( TInt32 ) t .get (0 )). getInt ( ));
137
137
}
138
138
}
139
139
}
@@ -179,7 +179,7 @@ public void withIncorrectDeviceSpec() {
179
179
.mul (absOps , bOps )
180
180
.asOutput ();
181
181
182
- try (AutoCloseableList <Tensor <?> > t =
182
+ try (AutoCloseableList <Tensor > t =
183
183
new AutoCloseableList <>(session .runner ().fetch (mulOps ).run ())) {
184
184
fail ();
185
185
} catch (TFInvalidArgumentException e ) {
@@ -212,9 +212,9 @@ public void withDeviceSpecInScope() {
212
212
.abs (aOps )
213
213
.asOutput ();
214
214
215
- try (AutoCloseableList <Tensor <?> > t =
215
+ try (AutoCloseableList <Tensor > t =
216
216
new AutoCloseableList <>(session .runner ().fetch (absOps ).run ())) {
217
- assertEquals (1 , t .get (0 ). rawData (). asInts (). getObject ( 0 ));
217
+ assertEquals (1 , (( TInt32 ) t .get (0 )). getInt ( ));
218
218
}
219
219
}
220
220
}
0 commit comments