Skip to content

Commit 5cf1568

Browse files
committed
Fix spotless check
1 parent cac7ef7 commit 5cf1568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tensorflow-core/tensorflow-core-api/src/test/java/org/tensorflow/SignatureTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.tensorflow.ndarray.Shape;
2323
import org.tensorflow.op.Ops;
2424
import org.tensorflow.op.core.Placeholder;
25-
import org.tensorflow.op.math.Sign;
2625
import org.tensorflow.proto.DataType;
2726
import org.tensorflow.types.TInt32;
2827

@@ -100,7 +99,8 @@ public void createTensorInfoFromOperandWithUnknownShape() {
10099
public void createTensorInfoFromOperandWithPartiallyUnknownShape() {
101100
try (Graph g = new Graph()) {
102101
var tf = Ops.create(g);
103-
var placeholder = tf.placeholder(TInt32.class, Placeholder.shape(Shape.of(Shape.UNKNOWN_SIZE, 10)));
102+
var shape = Shape.of(Shape.UNKNOWN_SIZE, 10);
103+
var placeholder = tf.placeholder(TInt32.class, Placeholder.shape(shape));
104104
var tensorInfo = Signature.Builder.toTensorInfo(placeholder.asOutput());
105105
assertFalse(tensorInfo.getTensorShape().getUnknownRank());
106106
assertEquals(2, tensorInfo.getTensorShape().getDimCount());

0 commit comments

Comments
 (0)