aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar Gyu-Ho Lee <gyuhox@gmail.com>2017-05-20 22:04:56 -0700
committerGravatar Martin Wicke <martin.wicke@gmail.com>2017-06-13 18:50:38 -0700
commit7f096b4fa137f3e020262ae30ce105ad35aa3115 (patch)
tree21e01871f90e152058fc7a76acde69a03041b86e /tensorflow
parent11e117ad20d2d07fd54ce52131f56d8155e8476f (diff)
tensorflow/go: simplify 'range' on 'shape'
Found via 'gofmt' Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/go/tensor.go2
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