Skip to content

Conversation

gs-olive
Copy link
Collaborator

@gs-olive gs-olive commented Oct 5, 2022

Description

This feature adds the sign unary converter

Fixes #1074

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • [ x ] My code follows the style guidelines of this project (You can use the linters)
  • [ x ] I have performed a self-review of my own code
  • [ x ] I have commented my code, particularly in hard-to-understand areas and hacks
  • [ x ] I have made corresponding changes to the documentation
  • [ x ] I have added tests to verify my fix or my feature
  • [ x ] New and existing unit tests pass locally with my changes
  • [ x ] I have added the relevant labels to my PR in so that relevant reviewers are notified

- Add sign operator
- Update test cases to test op
- Ensure tests cover both int and float cases with negative and positive
sign
- Ensure tests cover cases where elements equal zero
@github-actions github-actions bot added component: conversion Issues re: Conversion stage component: converters Issues re: Specific op converters component: core Issues re: The core compiler component: tests Issues re: Tests labels Oct 5, 2022
Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

LGTM!

@narendasan narendasan marked this pull request as ready for review October 5, 2022 23:40
@narendasan narendasan merged commit 38dfa0c into pytorch:master Oct 5, 2022
@gs-olive gs-olive deleted the sign_converter branch October 6, 2022 00:06
gs-olive added a commit to gs-olive/TensorRT that referenced this pull request Oct 11, 2022
* feat: Add converter for sign unary operator

- Add sign operator
- Update test cases to test op
- Ensure tests cover both int and float cases with negative and positive
sign
- Ensure tests cover cases where elements equal zero

* Remove round unary from PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed component: conversion Issues re: Conversion stage component: converters Issues re: Specific op converters component: core Issues re: The core compiler component: tests Issues re: Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

↔ [Converter] Add support for aten::sign in Torch-TensorRT
3 participants