Skip to content

Conversation

@supriyar
Copy link
Contributor

@supriyar supriyar commented Jul 28, 2020

Stack from ghstack:

Summary:
Op to check the range of a tensor and clamp the values to fp16 range
This operator will be inserted into the graph in subsequent diffs.

Test Plan:
python test/test_quantization.py TestQuantizedTensor.test_fp16_saturate_op

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: D22849221

Summary:
Op to check the range of a tensor and clamp the values to fp16 range
This operator will be inserted into the graph in subsequent diffs.

Test Plan:
python test/test_quantization.py TestQuantizedTensor.test_fp16_saturate_op

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
supriyar added a commit that referenced this pull request Jul 28, 2020
Summary:
Op to check the range of a tensor and clamp the values to fp16 range
This operator will be inserted into the graph in subsequent diffs.

Test Plan:
python test/test_quantization.py TestQuantizedTensor.test_fp16_saturate_op

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 25a5314
Pull Request resolved: #42147
@dr-ci
Copy link

dr-ci bot commented Jul 28, 2020

💊 CI failures summary and remediations

As of commit 2535659 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 8 times.

}

template <typename T>
bool CheckAndSaturate(T max_val, T* element) {
Copy link
Contributor

Choose a reason for hiding this comment

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

optional: I realize this is just moving code around, but this API seems to require careful reading to understand it correctly. Might be worth a refactor in the future to make it a void return type, and have the status be a var passed by reference.

supriyar added 3 commits July 29, 2020 12:00
Summary:
Op to check the range of a tensor and clamp the values to fp16 range
This operator will be inserted into the graph in subsequent diffs.

Test Plan:
python test/test_quantization.py TestQuantizedTensor.test_fp16_saturate_op

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Op to check the range of a tensor and clamp the values to fp16 range
This operator will be inserted into the graph in subsequent diffs.

Test Plan:
python test/test_quantization.py TestQuantizedTensor.test_fp16_saturate_op

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
Summary:
Op to check the range of a tensor and clamp the values to fp16 range
This operator will be inserted into the graph in subsequent diffs.

Test Plan:
python test/test_quantization.py TestQuantizedTensor.test_fp16_saturate_op

Reviewers:

Subscribers:

Tasks:

Tags:

Differential Revision: [D22849221](https://our.internmc.facebook.com/intern/diff/D22849221)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a9eebaf.

@facebook-github-bot facebook-github-bot deleted the gh/supriyar/151/head branch August 4, 2020 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants