-
Notifications
You must be signed in to change notification settings - Fork 365
feat: support for grouped inputs #1201
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
Changes from 22 commits
7393fa8
b26d768
b2a5183
8385253
d479c98
b7178ff
2b22767
418d1e5
ea7562c
c9d4788
9403f88
5cff257
f866dba
9bce034
6d0b1d3
253b3c7
8b891fb
f519935
5fadfd4
bce8464
891440d
09e032c
223dfd1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,13 @@ nvinfer1::ILayer* add_elementwise( | |
nvinfer1::ITensor* self, | ||
nvinfer1::ITensor* other, | ||
const std::string& name) { | ||
if (self->getType() == nvinfer1::DataType::kFLOAT && other->getType() == nvinfer1::DataType::kINT32) { | ||
LOG_DEBUG("Type mismatch, casting other to " << self->getType()); | ||
other = castITensor(ctx, other, self->getType()); | ||
} else if (self->getType() == nvinfer1::DataType::kINT32 && other->getType() == nvinfer1::DataType::kFLOAT) { | ||
LOG_DEBUG("Type mismatch, casting self to " << other->getType()); | ||
self = castITensor(ctx, self, other->getType()); | ||
} | ||
Comment on lines
+68
to
+74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this PR has more generic support #1238 I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am going to merge as is because tests will not pass without it then I would say rebase and apply your patch in your PR @peri044 |
||
// ensure self to have larger number of dimension | ||
bool swapSelfOther = false; | ||
if (self->getDimensions().nbDims < other->getDimensions().nbDims) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.