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

[Relay][Topi] Use SimplifyInference for L2 Normalization. #4795

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

anijain2305
Copy link
Contributor

Reason - Observed that l2_normalize (which is seemingly a sequence of element-wise op with one reduce op) was taking close to 15% of time in a ssd_vgg network.

This PR converts L2 normalize to a series of Relay expr, for which we have well-defined Relay passes and topi schedules. Therefore, the PR also removes topi compute/schedules.

@yidawang @yzhliu @tqchen @kazum @PariksheetPinjari909

No need of extra tests. The change is verified through existing tests.

@anijain2305 anijain2305 changed the title [Relay][Topi] Use SimplifyInference for L2 Normazlization. [Relay][Topi] Use SimplifyInference for L2 Normalization. Jan 31, 2020
@yzhliu yzhliu merged commit 90b2a1e into apache:master Jan 31, 2020
@yzhliu
Copy link
Member

yzhliu commented Jan 31, 2020

Thanks @anijain2305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants