diff options
author | Asim Shankar <ashankar@google.com> | 2016-10-11 21:39:46 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-10-11 22:49:45 -0700 |
commit | b17bbb58663502f0b1f45cf278ce7c0573f92154 (patch) | |
tree | 201446643aa556451d2b86df5e6820d1662fd3b2 /tensorflow/go/tensor_test.go | |
parent | 6b905241ecd462f1629ed24d0f9b3746187d5933 (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.go | 2 |
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 { |