Merge pull request #10846 from hbrammer/patch-1
Fix Java OperationBuilder documentation example
This commit is contained in:
commit
e3315f31d6
@ -28,7 +28,7 @@ import java.nio.charset.Charset;
|
|||||||
* <pre>{@code
|
* <pre>{@code
|
||||||
* // g is a Graph instance.
|
* // g is a Graph instance.
|
||||||
* try (Tensor c1 = Tensor.create(3.0f)) {
|
* try (Tensor c1 = Tensor.create(3.0f)) {
|
||||||
* g.opBuilder("Constant", "MyConst")
|
* g.opBuilder("Const", "MyConst")
|
||||||
* .setAttr("dtype", c1.dataType())
|
* .setAttr("dtype", c1.dataType())
|
||||||
* .setAttr("value", c1)
|
* .setAttr("value", c1)
|
||||||
* .build();
|
* .build();
|
||||||
|
Loading…
Reference in New Issue
Block a user