Merge pull request #26712 from frreiss:issue-golint

PiperOrigin-RevId: 238689044
This commit is contained in:
TensorFlower Gardener 2019-03-15 12:44:30 -07:00
commit 0ba6b04934

View File

@ -53,7 +53,7 @@ type Graph struct {
c *C.TF_Graph
}
// Graph execution options
// The GraphImportOptions struct holds parameters for the ImportWithOptions function.
type GraphImportOptions struct {
// Node prefix
Prefix string
@ -170,7 +170,7 @@ func (g *Graph) Operation(name string) *Operation {
// Operations returns a list of all operations in the graph
func (g *Graph) Operations() []Operation {
var pos C.size_t = 0
var pos C.size_t
ops := []Operation{}
for {
cop := C.TF_GraphNextOperation(g.c, &pos)