Skip to content

Commit

Permalink
update fft api path
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiboniu committed Sep 29, 2021
1 parent a9ea41c commit dd84743
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 25 deletions.
2 changes: 1 addition & 1 deletion python/paddle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
import paddle.static # noqa: F401
import paddle.vision # noqa: F401

from .tensor import fft
from .tensor.random import bernoulli # noqa: F401

from .tensor.attribute import rank # noqa: F401
Expand Down Expand Up @@ -294,6 +293,7 @@
from .hapi import flops # noqa: F401
from . import hub # noqa: F401
from . import linalg # noqa: F401
from . import fft # noqa: F401

import paddle.text # noqa: F401
import paddle.vision # noqa: F401
Expand Down
61 changes: 61 additions & 0 deletions python/paddle/fft.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from .tensor.fft import fft # noqa: F401
from .tensor.fft import fft2 # noqa: F401
from .tensor.fft import fftn # noqa: F401
from .tensor.fft import ifft # noqa: F401
from .tensor.fft import ifft2 # noqa: F401
from .tensor.fft import ifftn # noqa: F401
from .tensor.fft import rfft # noqa: F401
from .tensor.fft import rfft2 # noqa: F401
from .tensor.fft import rfftn # noqa: F401
from .tensor.fft import irfft # noqa: F401
from .tensor.fft import irfft2 # noqa: F401
from .tensor.fft import irfftn # noqa: F401
from .tensor.fft import hfft # noqa: F401
from .tensor.fft import hfft2 # noqa: F401
from .tensor.fft import hfftn # noqa: F401
from .tensor.fft import ihfft # noqa: F401
from .tensor.fft import ihfft2 # noqa: F401
from .tensor.fft import ihfftn # noqa: F401
from .tensor.fft import fftfreq # noqa: F401
from .tensor.fft import rfftfreq # noqa: F401
from .tensor.fft import fftshift # noqa: F401
from .tensor.fft import ifftshift # noqa: F401

__all__ = [ # noqa
'fft',
'fft2',
'fftn',
'ifft',
'ifft2',
'ifftn',
'rfft',
'rfft2',
'rfftn',
'irfft',
'irfft2',
'irfftn',
'hfft',
'hfft2',
'hfftn',
'ihfft',
'ihfft2',
'ihfftn',
'fftfreq',
'rfftfreq',
'fftshift',
'ifftshift'
]
25 changes: 1 addition & 24 deletions python/paddle/tensor/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,7 @@
from ..fluid.data_feeder import check_variable_and_dtype
from ..fluid.layer_helper import LayerHelper

__all__ = [
'fft',
'fft2',
'fftn',
'ifft',
'ifft2',
'ifftn',
'rfft',
'rfft2',
'rfftn',
'irfft',
'irfft2',
'irfftn',
'hfft',
'hfft2',
'hfftn',
'ihfft',
'ihfft2',
'ihfftn',
'fftfreq',
'rfftfreq',
'fftshift',
'ifftshift',
]
__all__ = []


def _check_normalization(norm):
Expand Down

1 comment on commit dd84743

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on dd84743 Sep 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #36219 Commit ID: dd84743 contains failed CI.

🔹 Failed: PR-CI-CPU-Py2

Unknown Failed
2021-09-29 18:53:25 21 sample codes ran success
2021-09-29 18:53:25 1 apis don'''t have sample codes
2021-09-29 18:53:25 Sample code check is successful!'
2021-09-29 18:53:25 + set +x
2021-09-29 18:53:25 ========================================
2021-09-29 18:53:25 summary problems:
2021-09-29 18:53:25 There is 1 error: Example code error.
2021-09-29 18:53:25 ========================================
2021-09-29 18:53:25 Example code error Please fix the error listed in the information:
2021-09-29 18:53:25 + EXCODE=5
2021-09-29 18:53:25 + echo 'EXCODE: 5'
2021-09-29 18:53:25 EXCODE: 5
2021-09-29 18:53:25 + echo 'ipipe_log_param_EXCODE: 5'
2021-09-29 18:53:25 ipipe_log_param_EXCODE: 5
2021-09-29 18:53:25 + set +x
2021-09-29 18:53:25 Sorry, API's example code check failed.
2021-09-29 18:53:25 + exit 5
2021-09-29 18:53:25 {build code state=5}
2021-09-29 18:53:25 the build(5f22420d6e174bf1a9d5e10654d31a84) state is BUILD_CODE_FAIL

🔹 Failed: PR-CI-Py3

test_failed
2021-09-29 19:20:14 The following tests FAILED:
2021-09-29 19:20:14 1449 - test_trt_convert_pool2d (Failed)
2021-09-29 19:20:14 1449 - test_trt_convert_pool2d (Failed)
2021-09-29 19:20:14 + EXCODE=8
2021-09-29 19:20:14 + echo 'EXCODE: 8'
2021-09-29 19:20:14 EXCODE: 8
2021-09-29 19:20:14 + echo 'ipipe_log_param_EXCODE: 8'
2021-09-29 19:20:14 ipipe_log_param_EXCODE: 8
2021-09-29 19:20:14 + [[ 8 -eq 0 ]]
2021-09-29 19:20:14 + set +x
2021-09-29 19:20:14 Sorry, some tests failed.
2021-09-29 19:20:14 + exit 8
2021-09-29 19:20:14 {build code state=8}

Please sign in to comment.