Fix Java OperationBuilder documentation example

"Constant" is not a registered Op type, "Const" is.
This commit is contained in:
Hauke Brammer 2017-06-20 14:59:25 +02:00 committed by GitHub
parent 0f17a54d4d
commit 9c88b5ee38

View File

@ -28,7 +28,7 @@ import java.nio.charset.Charset;
* <pre>{@code
* // g is a Graph instance.
* try (Tensor c1 = Tensor.create(3.0f)) {
* g.opBuilder("Constant", "MyConst")
* g.opBuilder("Const", "MyConst")
* .setAttr("dtype", c1.dataType())
* .setAttr("value", c1)
* .build();