Skip to content

Commit e0b70be

Browse files
committed
refactor: Apply linting
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 2be8ef9 commit e0b70be

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We use the PyTorch Slack for communication about core development, integration w
1616

1717
- Use the built in linting tools to ensure that your code matches the style guidelines
1818
```sh
19-
# C++ Linting (After installing clang-format)
19+
# C++ Linting (After installing clang-format [Version 9.0.0])
2020
# Print non-conforming sections of code
2121
bazel run //tools/linter:cpplint_diff -- //...
2222
# Modify code to conform with style guidelines

core/conversion/converters/impl/plugins/interpolate_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ int InterpolatePlugin::enqueue(
254254
cudaStream_t stream) {
255255
#if NV_TENSORRT_MAJOR < 7 || (NV_TENSORRT_MAJOR == 7 && NV_TENSORRT_MINOR < 1)
256256
at::Tensor input = at::from_blob((void*)inputs[0], util::toVec(inputDesc->dims), [](void*) {}, tensor_options_);
257-
at::Tensor output = at::from_blob(outputs[0], util::volume(outputDesc->dims), [](void*) {}, tensor_options_);
257+
at::Tensor output = at::from_blob(
258+
outputs[0], util::volume(outputDesc->dims), [](void*) {}, tensor_options_);
258259

259260
at::cuda::CUDAStream torch_stream = at::cuda::getStreamFromPool();
260261
at::cuda::CUDAStreamGuard torch_guard(torch_stream);

core/lowering/register_trt_placeholder_ops.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ c10::AliasAnalysisKind aliasAnalysisFromSchema() {
1010
RegisterOperators trt_placeholder_ops_reg({
1111
/// Op marks a Tensor to be conveted from an Torch Tensor
1212
/// to a TRT constant Tensor
13-
Operator("trt::const(Tensor val) -> Tensor", [](Stack* stack) {}, aliasAnalysisFromSchema()),
13+
Operator(
14+
"trt::const(Tensor val) -> Tensor",
15+
[](Stack* stack) {},
16+
aliasAnalysisFromSchema()),
1417
});
1518

1619
} // namespace jit

0 commit comments

Comments
 (0)