Skip to content

Commit

Permalink
fix clang-format (pytorch#35884)
Browse files Browse the repository at this point in the history
Summary:
breakage introduced in PR that I landed
Pull Request resolved: pytorch#35884

Differential Revision: D20817603

Pulled By: soumith

fbshipit-source-id: b0729bed81549d4c8e6a889c380baa19c73ef127
  • Loading branch information
soumith authored and facebook-github-bot committed Apr 2, 2020
1 parent 0966089 commit d9dd353
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion torch/csrc/jit/codegen/cuda/dispatch.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <torch/csrc/WindowsTorchApiMacro.h>
#include <c10/util/Exception.h>
#include <torch/csrc/WindowsTorchApiMacro.h>

/*
* dispatch.h prevents the need from adding manual dispatch in every class that
Expand Down
30 changes: 14 additions & 16 deletions torch/csrc/jit/codegen/cuda/interface.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <torch/csrc/jit/runtime/custom_operator.h>
#include <torch/csrc/jit/codegen/cuda/interface.h>
#include <ATen/core/dispatch/OperatorOptions.h>
#include <torch/csrc/jit/runtime/custom_operator.h>

namespace torch {
namespace jit {
Expand Down Expand Up @@ -36,19 +36,17 @@ void fuseGraph(std::shared_ptr<Graph>& graph) {
} // namespace cuda
} // namespace fuser


RegisterOperators reg(
{Operator(
prim::CudaFusionGroup,
[](const Node* node) -> Operation {
return [node](Stack& stack) {
fuser::cuda::runFusionGroup(node, stack);
return 0;
};
},
c10::AliasAnalysisKind::INTERNAL_SPECIAL_CASE),
}
);

} // namespace jit
RegisterOperators reg({
Operator(
prim::CudaFusionGroup,
[](const Node* node) -> Operation {
return [node](Stack& stack) {
fuser::cuda::runFusionGroup(node, stack);
return 0;
};
},
c10::AliasAnalysisKind::INTERNAL_SPECIAL_CASE),
});

} // namespace jit
} // namespace torch

0 comments on commit d9dd353

Please sign in to comment.