diff options
author | Håvard Pettersen <havardpe@oath.com> | 2018-02-05 13:20:32 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2018-02-05 13:20:32 +0000 |
commit | 0053375eecf11d35bf8aeccd7ecbd28a4adf9292 (patch) | |
tree | 88067e05d593251c90ea699c40c361b61931c85f /eval/src/apps/tensor_conformance/generate.cpp | |
parent | 5a77206ad7fbc7b32ff6988b29ac7fc6f9438b8c (diff) |
allow serializing dense tensor views
needed for fall-back to reference implementation using on-the-fly
generated dense tensors that are not of the 'DenseTensor' class.
Diffstat (limited to 'eval/src/apps/tensor_conformance/generate.cpp')
-rw-r--r-- | eval/src/apps/tensor_conformance/generate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eval/src/apps/tensor_conformance/generate.cpp b/eval/src/apps/tensor_conformance/generate.cpp index f70c472cbcd..f3a99f8a36c 100644 --- a/eval/src/apps/tensor_conformance/generate.cpp +++ b/eval/src/apps/tensor_conformance/generate.cpp @@ -193,6 +193,8 @@ void generate_tensor_concat(TestBuilder &dst) { spec({x(2),y(2),z(3)}, Seq({1.0, 2.0, 3.0, 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0}))); dst.add("concat(a,b,x)", {{"a", spec(y(3), Seq({1.0, 2.0, 3.0}))}, {"b", spec(y(2), Seq({4.0, 5.0}))}}, spec({x(2), y(2)}, Seq({1.0, 2.0, 4.0, 5.0}))); + dst.add("concat(concat(a,b,x),concat(c,d,x),y)", {{"a", spec(1.0)}, {"b", spec(2.0)}, {"c", spec(3.0)}, {"d", spec(4.0)}}, + spec({x(2), y(2)}, Seq({1.0, 3.0, 2.0, 4.0}))); } //----------------------------------------------------------------------------- |