### Question:
GraphOperation extends AbstractOperation { @Override Tensor<?> tensor(int outputIdx) { throw new IllegalStateException("Graph tensors must be fetched by running a session"); } GraphOperation(Graph g, TF_Operation unsafeNativeHandle); @Override String name(); @Override String type(); @Override int numOutputs(); @Override int outputListLength(final String name); @Override int hashCode(); @Override boolean equals(Object o); @Override int inputListLength(final String name);  }### Answer:
@Test public void outputTensorNotSupported() { try (Graph g = new Graph()) { Ops tf = Ops.create(g); Operation split = tf.split(tf.constant(0), tf.array(0, 1, 2), 3L).op(); try { split.output(0).tensor(); fail(); } catch (IllegalStateException e) { } } }