Fix two golint warnings
This commit is contained in:
parent
6108cbd1db
commit
b235102306
@ -53,7 +53,7 @@ type Graph struct {
|
|||||||
c *C.TF_Graph
|
c *C.TF_Graph
|
||||||
}
|
}
|
||||||
|
|
||||||
// Graph execution options
|
// The GraphImportOptions struct holds parameters for the ImportWithOptions function.
|
||||||
type GraphImportOptions struct {
|
type GraphImportOptions struct {
|
||||||
// Node prefix
|
// Node prefix
|
||||||
Prefix string
|
Prefix string
|
||||||
@ -170,7 +170,7 @@ func (g *Graph) Operation(name string) *Operation {
|
|||||||
|
|
||||||
// Operations returns a list of all operations in the graph
|
// Operations returns a list of all operations in the graph
|
||||||
func (g *Graph) Operations() []Operation {
|
func (g *Graph) Operations() []Operation {
|
||||||
var pos C.size_t = 0
|
var pos C.size_t
|
||||||
ops := []Operation{}
|
ops := []Operation{}
|
||||||
for {
|
for {
|
||||||
cop := C.TF_GraphNextOperation(g.c, &pos)
|
cop := C.TF_GraphNextOperation(g.c, &pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user