-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time major Spectrogram (GPU-only) #2617
Conversation
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
!build |
args.spectrum_type = static_cast<FftSpectrumType>(power); | ||
args.time_major_layout = layout == "tf"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line does the whole trick :)
@@ -27,59 +27,65 @@ | |||
namespace dali { | |||
|
|||
DALI_SCHEMA(Spectrogram) | |||
.DocStr(R"code(Produces a spectrogram from a 1D signal (for example, audio). | |||
.DocStr(R"(Produces a spectrogram from a 1D signal (for example, audio). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this code
, it is consistent with the rest of the documentation.
if HW (HeightWidth) is row-major, why is ft frequency major? |
CI MESSAGE: [1985403]: BUILD STARTED |
The "major" coordinate is the outer one. Row-major is a matrix thing - it tells us that the outer coordinate indicates the row. |
CI MESSAGE: [1985403]: BUILD PASSED |
* Add time-major GPU spectrogram. * Add tests for time-major spectrogram. Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
"layout"
argument with 2 values "tf" and "ft".JIRA TASK: N/A