diff options
Diffstat (limited to 'tensorflow/go/tensor.go')
-rw-r--r-- | tensorflow/go/tensor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/go/tensor.go b/tensorflow/go/tensor.go index 34e797a2b3..4a60c736b5 100644 --- a/tensorflow/go/tensor.go +++ b/tensorflow/go/tensor.go @@ -270,7 +270,7 @@ func typeOf(dt DataType, shape []int64) reflect.Type { if ret == nil { panic(bug("DataType %v is not supported", dt)) } - for _ = range shape { + for range shape { ret = reflect.SliceOf(ret) } return ret |