Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbloo committed Jan 2, 2024
1 parent f41a12e commit 923cac1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ namespace Dml::GraphDescBuilder

if (constantInput && tensorDesc->totalTensorSizeInBytes < c_maxConstNodeDataSize)
{
// The tensor description's size should be no larger than the constant input unless it was rounded to

Check warning on line 360 in onnxruntime/core/providers/dml/DmlExecutionProvider/src/GraphDescBuilder.cpp

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/core/providers/dml/DmlExecutionProvider/src/GraphDescBuilder.cpp#L360

Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Raw output
onnxruntime/core/providers/dml/DmlExecutionProvider/src/GraphDescBuilder.cpp:360:  Line ends in whitespace.  Consider deleting these extra spaces.  [whitespace/end_of_line] [4]
// the required alignment.
assert(((constantInput->GetTensorByteSize() + 3) & ~3) >= tensorDesc->totalTensorSizeInBytes);
size_t minimumConstantSize = std::min(constantInput->GetTensorByteSize(), tensorDesc->totalTensorSizeInBytes);

Check warning on line 363 in onnxruntime/core/providers/dml/DmlExecutionProvider/src/GraphDescBuilder.cpp

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/core/providers/dml/DmlExecutionProvider/src/GraphDescBuilder.cpp#L363

Add #include <algorithm> for min [build/include_what_you_use] [4]
Raw output
onnxruntime/core/providers/dml/DmlExecutionProvider/src/GraphDescBuilder.cpp:363:  Add #include <algorithm> for min  [build/include_what_you_use] [4]
auto data = static_cast<const uint8_t*>(constantInput->GetData());
Expand Down

0 comments on commit 923cac1

Please sign in to comment.