Skip to content
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

Add correlation api to contrib #27015

Merged
merged 8 commits into from
Sep 8, 2020

Conversation

LielinJiang
Copy link
Contributor

@LielinJiang LielinJiang commented Sep 4, 2020

PR types

New features

PR changes

APIs

Describe

Add correlation api to contrib.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 4, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

void Make() override {
AddInput("Input1", "input1");
AddInput("Input2", "input2");
AddOutput("Output", "output");
Copy link
Contributor

Choose a reason for hiding this comment

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

give more comments for inputs and output, such as shape, dtype, ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

#include "paddle/fluid/operators/correlation_op.h"

#define THREADS_PER_BLOCK 32
#define FULL_MASK 0xffffffff
Copy link
Contributor

Choose a reason for hiding this comment

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

put these inside namespace

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

limitations under the License. */

#pragma once
#include "paddle/fluid/framework/op_registry.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

can delete this file, put the include in .cc/.cu

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

<https://arxiv.org/pdf/1709.02371.pdf>_

Args:
x(Tensor): The input tensor, The data type is float32 and float64.
Copy link
Contributor

Choose a reason for hiding this comment

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

also give the shape

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

qingqing01
qingqing01 previously approved these changes Sep 8, 2020
lanxianghit
lanxianghit previously approved these changes Sep 8, 2020
Copy link
Contributor

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM

@LielinJiang LielinJiang merged commit 8df5b4d into PaddlePaddle:develop Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants