diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-12-15 17:32:50 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-12-15 17:39:26 -0800 |
commit | 9648f8040a559f6cf9bbe0501ba96f2b2c2864b1 (patch) | |
tree | 57dc6e959e0a534622eaf392ee43b7691378b10e /tensorflow/go/graph.go | |
parent | 5b5445b9a7aa2664a90c4fc946ecf268c971425b (diff) |
Automated g4 rollback of changelist 179258973
PiperOrigin-RevId: 179260538
Diffstat (limited to 'tensorflow/go/graph.go')
-rw-r--r-- | tensorflow/go/graph.go | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/tensorflow/go/graph.go b/tensorflow/go/graph.go index fc087d9d99..f200a8e00a 100644 --- a/tensorflow/go/graph.go +++ b/tensorflow/go/graph.go @@ -28,8 +28,7 @@ package tensorflow // int num_shapes) { // const int64_t** dims = // (const int64_t**)malloc(sizeof(const int64_t*) * num_shapes); -// int i = 0; -// for (i = 0; i < num_shapes; i++) { +// for (int i = 0; i < num_shapes; i++) { // dims[i] = flat_dims; // if (num_dims[i] > 0) { // // flat_dims will be NULL iff num_shapes is 0 or all elements in num_dims are <= 0. @@ -133,20 +132,6 @@ func (g *Graph) Operation(name string) *Operation { return &Operation{cop, g} } -// Operations returns a list of all operations in the graph -func (g *Graph) Operations() []Operation { - var pos C.size_t = 0 - ops := []Operation{} - for { - cop := C.TF_GraphNextOperation(g.c, &pos) - if cop == nil { - break - } - ops = append(ops, Operation{cop, g}) - } - return ops -} - // OpSpec is the specification of an Operation to be added to a Graph // (using Graph.AddOperation). type OpSpec struct { |