Fix two golint warnings

This commit is contained in:
frreiss 2019-03-14 09:52:21 -07:00
parent 6108cbd1db
commit b235102306

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)