Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#395 from JingyuanZhang/master
Browse files Browse the repository at this point in the history
feat(webgl): support pool2d adaptive and adapt split num attr
  • Loading branch information
changy1105 authored Mar 8, 2022
2 parents caef32b + 855c9b3 commit 1555bcb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/paddlejs-backend-webgl/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/paddlejs-backend-webgl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paddlejs/paddlejs-backend-webgl",
"version": "1.1.15",
"version": "1.1.17",
"description": "",
"main": "lib/index",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/paddlejs-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paddlejs/paddlejs-core",
"version": "2.1.15",
"version": "2.1.16",
"description": "",
"main": "lib/index",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions packages/paddlejs-core/src/opFactory/opBehaviors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ const behaviors : Behaviors = {
// 保存 输入 tensor 对应dim 的长度
this.processedAttrs.inputs_dim = shape[axis];
this.processedAttrs.dim = axis;
if (this.processedAttrs.num === 0) {
this.processedAttrs.num = Object.values(this.tensorDataMap)
.filter(item => item.tensorName === 'out').length || 1;
}
},

processElementwiseAxis() {
Expand Down

0 comments on commit 1555bcb

Please sign in to comment.