Fix Java OperationBuilder documentation example
"Constant" is not a registered Op type, "Const" is.
This commit is contained in:
parent
0f17a54d4d
commit
9c88b5ee38
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user