Skip to content

Commit

Permalink
[AutoAccept][Codemod][FBSourceClangFormatLinter] Daily `arc lint --ta…
Browse files Browse the repository at this point in the history
…ke CLANGFORMAT`

Reviewed By: zsol

Differential Revision: D35109008

fbshipit-source-id: 35d37cc1d991569c6df8e65fc789803ac881012b
(cherry picked from commit f5beda9)
  • Loading branch information
CodemodService FBSourceClangFormatLinterBot authored and pytorchmergebot committed Mar 24, 2022
1 parent a7b6b1f commit c9612cd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
68 changes: 34 additions & 34 deletions ios/TestApp/TestAppTests/TestLiteInterpreter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ @interface TestAppTests : XCTestCase
@implementation TestAppTests {
}

- (void)runModel:(NSString*) filename {
- (void)runModel:(NSString*)filename {
NSString* modelPath = [[NSBundle bundleForClass:[self class]] pathForResource:filename
ofType:@"ptl"];
XCTAssertNotNil(modelPath);
Expand Down Expand Up @@ -41,134 +41,134 @@ - (void)testCoreML {
}

- (void)testPointwiseOps {
[self runModel:@"pointwise_ops"];
[self runModel:@"pointwise_ops"];
}

- (void)testReductionOps {
[self runModel:@"reduction_ops"];
[self runModel:@"reduction_ops"];
}

- (void)testComparisonOps {
[self runModel:@"comparison_ops"];
[self runModel:@"comparison_ops"];
}

- (void)testOtherMathOps {
[self runModel:@"other_math_ops"];
[self runModel:@"other_math_ops"];
}

- (void)testSpectralOps {
[self runModel:@"spectral_ops"];
[self runModel:@"spectral_ops"];
}

- (void)testBlasLapackOps {
[self runModel:@"blas_lapack_ops"];
[self runModel:@"blas_lapack_ops"];
}

- (void)testSamplingOps {
[self runModel:@"sampling_ops"];
[self runModel:@"sampling_ops"];
}

- (void)testTensorOps {
[self runModel:@"tensor_general_ops"];
[self runModel:@"tensor_general_ops"];
}

- (void)testTensorCreationOps {
[self runModel:@"tensor_creation_ops"];
[self runModel:@"tensor_creation_ops"];
}

- (void)testTensorIndexingOps {
[self runModel:@"tensor_indexing_ops"];
[self runModel:@"tensor_indexing_ops"];
}

- (void)testTensorTypingOps {
[self runModel:@"tensor_typing_ops"];
[self runModel:@"tensor_typing_ops"];
}

- (void)testTensorViewOps {
[self runModel:@"tensor_view_ops"];
[self runModel:@"tensor_view_ops"];
}

- (void)testConvolutionOps {
[self runModel:@"convolution_ops"];
[self runModel:@"convolution_ops"];
}

- (void)testPoolingOps {
[self runModel:@"pooling_ops"];
[self runModel:@"pooling_ops"];
}

- (void)testPaddingOps {
[self runModel:@"padding_ops"];
[self runModel:@"padding_ops"];
}

- (void)testActivationOps {
[self runModel:@"activation_ops"];
[self runModel:@"activation_ops"];
}

- (void)testNormalizationOps {
[self runModel:@"normalization_ops"];
[self runModel:@"normalization_ops"];
}

- (void)testRecurrentOps {
[self runModel:@"recurrent_ops"];
[self runModel:@"recurrent_ops"];
}

- (void)testTransformerOps {
[self runModel:@"transformer_ops"];
[self runModel:@"transformer_ops"];
}

- (void)testLinearOps {
[self runModel:@"linear_ops"];
[self runModel:@"linear_ops"];
}

- (void)testDropoutOps {
[self runModel:@"dropout_ops"];
[self runModel:@"dropout_ops"];
}

- (void)testSparseOps {
[self runModel:@"sparse_ops"];
[self runModel:@"sparse_ops"];
}

- (void)testDistanceFunctionOps {
[self runModel:@"distance_function_ops"];
[self runModel:@"distance_function_ops"];
}

- (void)testLossFunctionOps {
[self runModel:@"loss_function_ops"];
[self runModel:@"loss_function_ops"];
}

- (void)testVisionFunctionOps {
[self runModel:@"vision_function_ops"];
[self runModel:@"vision_function_ops"];
}

- (void)testShuffleOps {
[self runModel:@"shuffle_ops"];
[self runModel:@"shuffle_ops"];
}

- (void)testNNUtilsOps {
[self runModel:@"nn_utils_ops"];
[self runModel:@"nn_utils_ops"];
}

- (void)testQuantOps {
[self runModel:@"general_quant_ops"];
[self runModel:@"general_quant_ops"];
}

- (void)testDynamicQuantOps {
[self runModel:@"dynamic_quant_ops"];
[self runModel:@"dynamic_quant_ops"];
}

- (void)testStaticQuantOps {
[self runModel:@"static_quant_ops"];
[self runModel:@"static_quant_ops"];
}

- (void)testFusedQuantOps {
[self runModel:@"fused_quant_ops"];
[self runModel:@"fused_quant_ops"];
}

- (void)testTorchScriptBuiltinQuantOps {
[self runModel:@"torchscript_builtin_ops"];
[self runModel:@"torchscript_builtin_ops"];
}

- (void)testTorchScriptCollectionQuantOps {
[self runModel:@"torchscript_collection_ops"];
[self runModel:@"torchscript_collection_ops"];
}
@end
14 changes: 7 additions & 7 deletions torch/csrc/jit/python/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,13 @@ void initJITBindings(PyObject* module) {
})
.def(
"_jit_set_nvfuser_skip_node_kind",
// Args:
// `op_name`: Symbol of op;
// `flip`: flag indicating whether to flip the given op in the
// skip list.
// Returns:
// a bool flag indicating if `op_name` was already in the skip
// list.
// Args:
// `op_name`: Symbol of op;
// `flip`: flag indicating whether to flip the given op in the
// skip list.
// Returns:
// a bool flag indicating if `op_name` was already in the skip
// list.
[](const std::string& op_name, bool flip = true) {
return fuser::cuda::skipNode(op_name, flip);
})
Expand Down

0 comments on commit c9612cd

Please sign in to comment.