Skip to content

Commit 461cc0a

Browse files
CodemodService FBSourceClangFormatLinterBotpytorchmergebot
CodemodService FBSourceClangFormatLinterBot
authored andcommitted
[AutoAccept][Codemod][FBSourceClangFormatLinter] Daily arc lint --take CLANGFORMAT
Reviewed By: adamjernst Differential Revision: D36061557 fbshipit-source-id: 61ea6017a3550dbbb13b7b288a1d537253c25fe2 (cherry picked from commit 2ea13c5)
1 parent 9bcd60f commit 461cc0a

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

caffe2/proto/caffe2.proto

+11-11
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,17 @@ message Argument {
210210
// line in the DeviceTypeName() function in caffe2/utils/proto_utils.cc
211211
// and update c10/core/DeviceType.h
212212
enum DeviceTypeProto {
213-
PROTO_CPU = 0; // In default, we will use CPU.
214-
PROTO_CUDA = 1; // CUDA.
215-
PROTO_MKLDNN = 2; // Reserved for explicit MKLDNN
216-
PROTO_OPENGL = 3; // OpenGL
217-
PROTO_OPENCL = 4; // OpenCL
218-
PROTO_IDEEP = 5; // IDEEP.
219-
PROTO_HIP = 6; // AMD HIP
220-
PROTO_FPGA = 7; // FPGA
221-
PROTO_ORT = 8; // ONNX Runtime
222-
PROTO_XLA = 9; // XLA / TPU
223-
PROTO_MPS = 10; // MPS
213+
PROTO_CPU = 0; // In default, we will use CPU.
214+
PROTO_CUDA = 1; // CUDA.
215+
PROTO_MKLDNN = 2; // Reserved for explicit MKLDNN
216+
PROTO_OPENGL = 3; // OpenGL
217+
PROTO_OPENCL = 4; // OpenCL
218+
PROTO_IDEEP = 5; // IDEEP.
219+
PROTO_HIP = 6; // AMD HIP
220+
PROTO_FPGA = 7; // FPGA
221+
PROTO_ORT = 8; // ONNX Runtime
222+
PROTO_XLA = 9; // XLA / TPU
223+
PROTO_MPS = 10; // MPS
224224
// Change the following number if you add more devices in the code.
225225
PROTO_COMPILE_TIME_MAX_DEVICE_TYPES = 11;
226226
}

torch/csrc/jit/codegen/cuda/runtime/helpers.cu

+8-2
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,21 @@ __device__ float lerp(float start, float end, float weight) {
4545
}
4646
}
4747

48-
__device__ std::complex<double> lerp(std::complex<double> start, std::complex<double> end, std::complex<double> weight) {
48+
__device__ std::complex<double> lerp(
49+
std::complex<double> start,
50+
std::complex<double> end,
51+
std::complex<double> weight) {
4952
if (abs(weight) < 0.5) {
5053
return start + weight * (end - start);
5154
} else {
5255
return end - (end - start) * (1.0 - weight);
5356
}
5457
}
5558

56-
__device__ std::complex<float> lerp(std::complex<float> start, std::complex<float> end, std::complex<float> weight) {
59+
__device__ std::complex<float> lerp(
60+
std::complex<float> start,
61+
std::complex<float> end,
62+
std::complex<float> weight) {
5763
if (abs(weight) < 0.5f) {
5864
return start + weight * (end - start);
5965
} else {

0 commit comments

Comments
 (0)