diff options
author | 2017-06-27 16:33:00 -0700 | |
---|---|---|
committer | 2017-06-27 16:37:09 -0700 | |
commit | 50b999a8336d19400ab75aea66fe46eca2f5fe0b (patch) | |
tree | 7cba4f4af6b131c253b65ff9f2923e851184668c /tensorflow/go/tensor.go | |
parent | d6d58a3a1785785679af56c0f8f131e7312b8226 (diff) |
Merge changes from github.
PiperOrigin-RevId: 160344052
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 |