You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Construct the computation graph with a single operation, a constant// named "MyConst" with a value "value".try (Tensort = Tensor.create(value.getBytes("UTF-8"))) {
// The Java API doesn't yet include convenience functions for adding operations.g.opBuilder("Const", "MyConst").setAttr("dtype", t.dataType()).setAttr("value", t).build();
}
We could provide equivalent in node.js (only better, in terms of API compared to Java). However, how useful is it ... vs. the idea of constructing graphs entirely in Python or with JSON (once #22 is fixed).
The text was updated successfully, but these errors were encountered:
The new C APIs support building ops and adding them to the Graph.
For example, from https://www.tensorflow.org/install/install_java
We could provide equivalent in node.js (only better, in terms of API compared to Java). However, how useful is it ... vs. the idea of constructing graphs entirely in Python or with JSON (once #22 is fixed).
The text was updated successfully, but these errors were encountered: