Skip to content

Commit

Permalink
add intepolte_v2 (PaddlePaddle#26520)
Browse files Browse the repository at this point in the history
* add intepolte_v2

* fix linear interp

* polish unittest, test=develop

* update code samples to 2.0 API, test=develop

* remove warning, test_develop

* add name in attrs, test=develop

* polish code, test=develop

* change Align to align, test=develop

* fix unittest in py3,test=develop

* fix coverage, test=develop

* fix coverage, test=develop

* fix for windows ci, test=develop

* fix coverage, test=develop
  • Loading branch information
tink2123 authored Aug 27, 2020
1 parent fc5acdd commit 89d7d86
Show file tree
Hide file tree
Showing 16 changed files with 6,936 additions and 105 deletions.
695 changes: 695 additions & 0 deletions paddle/fluid/operators/interpolate_v2_op.cc

Large diffs are not rendered by default.

1,578 changes: 1,578 additions & 0 deletions paddle/fluid/operators/interpolate_v2_op.cu

Large diffs are not rendered by default.

1,386 changes: 1,386 additions & 0 deletions paddle/fluid/operators/interpolate_v2_op.h

Large diffs are not rendered by default.

504 changes: 504 additions & 0 deletions python/paddle/fluid/tests/unittests/test_bicubic_interp_v2_op.py

Large diffs are not rendered by default.

620 changes: 620 additions & 0 deletions python/paddle/fluid/tests/unittests/test_bilinear_interp_v2_op.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import paddle.fluid.core as core
import paddle.fluid as fluid
from paddle.fluid import Program, program_guard
from paddle.nn.functional import *
from paddle.nn.functional import interpolate


def linear_interp_np(input,
Expand Down
Loading

0 comments on commit 89d7d86

Please sign in to comment.