Skip to content

Commit

Permalink
Fix matmul
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnycase committed Jan 14, 2019
1 parent 5ad8fc5 commit 3cdb4ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NnCase.Converter/Model/Layers/K210/K210AddPadding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected override void OnPlanning(GraphPlanContext context)
var graph = context.TFGraph;
var input = context.TFOutputs[Input.Connection.From];

input = graph.Reshape(input, graph.Const(new[] { Input.Dimensions[0], 1, 1, Input.Dimensions[1] }));
context.TFOutputs[Output] = graph.Pad(input, graph.Const(new[,] { { 0, 0 }, { 0, 3 }, { 0, 3 }, { 0, 0 } }));
}
}
Expand Down

0 comments on commit 3cdb4ed

Please sign in to comment.