Skip to content

11.22 #101

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

Open
wants to merge 8 commits into
base: wlt
Choose a base branch
from
Open

11.22 #101

wants to merge 8 commits into from

Conversation

remloveh
Copy link
Contributor

No description provided.

test_op("upsampling"); // formal & cpu pass
test_op("dense"); // formal & cpu pass
int main(int argc, char* argv[]) {
ctx = APIDevTypeMap.at(stoi(argv[1]));
Copy link
Member

Choose a reason for hiding this comment

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

Add more information about arguments, such as the meaning, format, etc.

tests/test_op.cc Outdated
Comment on lines 688 to 694
//test_op("non_max_suppression"); // formal & cpu pass
// test_op("broadcast_sub"); // formal & cpu pass
// test_op("broadcast_add"); // formal & cpu pass
// test_op("broadcast_mul"); // formal & cpu pass
// test_op("broadcast_max"); // formal & cpu pass
// test_op("broadcast_div"); // formal & cpu pass
// test_op("broadcast_greater"); // formal & cpu pass
Copy link
Member

Choose a reason for hiding this comment

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

Update the GPU pass information like your test documentation.

return result(tshape, tdata, params, attr)[0];
}

NDArray dense(NDArray const& data, NDArray const& weight, string attr_str, NDArray* bias = nullptr)
Copy link
Member

Choose a reason for hiding this comment

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

Support three typed-APIs:

  1. NDArray
  2. DLTensor
  3. int32_t *

return res;
}

NDArray conv2d(NDArray const& data, NDArray const& weight, string attr_str, NDArray* bias = nullptr)
Copy link
Member

Choose a reason for hiding this comment

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

use typed-attributes in parameters, instead of attr_str.

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.

None yet

2 participants