aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/go/tensor_test.go
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2016-10-11 21:39:46 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-11 22:49:45 -0700
commitb17bbb58663502f0b1f45cf278ce7c0573f92154 (patch)
tree201446643aa556451d2b86df5e6820d1662fd3b2 /tensorflow/go/tensor_test.go
parent6b905241ecd462f1629ed24d0f9b3746187d5933 (diff)
go: Introduce a Scope for graph construction.
The Scope encapsulates common properties of operations being added to the graph. The plan is for all generated wrapper functions for ops to consume a Scope as their first argument. This is similar to the Scope class in the C++ API. The Scope object defined here is far from complete, but I wanted to get this out so that I can start on code generation for the wrapper functions for ops. While at it, also defined named constants for DataType. Another step in the journey towards #10 Change: 135882730
Diffstat (limited to 'tensorflow/go/tensor_test.go')
-rw-r--r--tensorflow/go/tensor_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/go/tensor_test.go b/tensorflow/go/tensor_test.go
index 630d613729..fd80658615 100644
--- a/tensorflow/go/tensor_test.go
+++ b/tensorflow/go/tensor_test.go
@@ -60,6 +60,8 @@ func TestNewTensor(t *testing.T) {
[]uint32{5},
uint64(5),
[]uint64{5},
+ // Mismatched dimensions
+ [][]float32{{1,2,3},{4}},
}
for _, test := range tests {