Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
repro reshape pack error
Browse files Browse the repository at this point in the history
  • Loading branch information
duli2012 committed May 4, 2021
1 parent 785d37b commit f941136
Showing 1 changed file with 73 additions and 68 deletions.
141 changes: 73 additions & 68 deletions test/unittests/backends/webgl/test_reshape_packed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,75 +86,80 @@ interface TestData {
function getTestData(): TestData[] {
return [
// test 2D tensor
/* {
elementCount: 16,
inputShape: [4, 4],
outputShape: [2, 8],
},
{
elementCount: 16,
inputShape: [4, 4],
outputShape: [1, 16],
},
{
elementCount: 8,
inputShape: [2, 4],
outputShape: [4, 2],
},
{
elementCount: 8,
inputShape: [2, 4],
outputShape: [1, 8],
},
{
elementCount: 6,
inputShape: [2, 3],
outputShape: [1, 6],
},
{
elementCount: 6,
inputShape: [2, 3],
outputShape: [3, 2],
},
// test 3d tensor
{
elementCount: 16,
inputShape: [2, 2, 4],
outputShape: [4, 2, 2],
},
{
elementCount: 16,
inputShape: [2, 2, 4],
outputShape: [2, 4, 2],
},
{
elementCount: 16,
inputShape: [2, 2, 4],
outputShape: [1, 1, 2, 8],
},
// test 4d tensor
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [4, 2, 2, 2],
},
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [2, 4, 2, 2],
},
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [2, 2, 4, 2],
},
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [2, 1, 4, 4],
},*/
{
elementCount: 16,
inputShape: [4, 4],
outputShape: [2, 8],
},
{
elementCount: 16,
inputShape: [4, 4],
outputShape: [1, 16],
},
{
elementCount: 8,
inputShape: [2, 4],
outputShape: [4, 2],
},
{
elementCount: 8,
inputShape: [2, 4],
outputShape: [1, 8],
},
{
elementCount: 6,
inputShape: [2, 3],
outputShape: [1, 6],
},
{
elementCount: 6,
inputShape: [2, 3],
outputShape: [3, 2],
},

// test 3d tensor
{
elementCount: 16,
inputShape: [2, 2, 4],
outputShape: [4, 2, 2],
},
{
elementCount: 16,
inputShape: [2, 2, 4],
outputShape: [2, 4, 2],
},
{
elementCount: 16,
inputShape: [2, 2, 4],
outputShape: [1, 1, 2, 8],
},

// test 4d tensor
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [4, 2, 2, 2],
},
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [2, 4, 2, 2],
},

{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [2, 2, 4, 2],
},
{
elementCount: 32,
inputShape: [2, 2, 2, 4],
outputShape: [2, 1, 4, 4],
elementCount: 18432,
inputShape: [512, 36, 1, 1],
outputShape: [512, 36],
},
];
}

0 comments on commit f941136

Please sign in to comment.