mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE] Format .ci/
/ .github/
/ benchmarks/
/ functorch/
/ tools/
/ torchgen/
with ruff format
(#132577)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132577 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
04adb74d08
commit
267f82b860
@ -176,9 +176,9 @@ class default_args:
|
||||
tensor_class: str = "torch::lazy::LazyTensor"
|
||||
tensor_class_hdr: str = "torch/csrc/lazy/core/tensor.h"
|
||||
lazy_ir_generator: type[GenLazyIR] = GenLazyIR
|
||||
native_func_definition_generator: type[
|
||||
native_func_definition_generator: type[GenLazyNativeFuncDefinition] = (
|
||||
GenLazyNativeFuncDefinition
|
||||
] = GenLazyNativeFuncDefinition
|
||||
)
|
||||
backend_name: str = "TorchScript"
|
||||
|
||||
|
||||
@ -257,9 +257,9 @@ def main() -> None:
|
||||
lazy_ir_generator: type[GenLazyIR] = default_args.lazy_ir_generator
|
||||
if options.gen_ts_lowerings:
|
||||
lazy_ir_generator = GenTSLazyIR
|
||||
native_func_definition_generator: type[
|
||||
GenLazyNativeFuncDefinition
|
||||
] = default_args.native_func_definition_generator
|
||||
native_func_definition_generator: type[GenLazyNativeFuncDefinition] = (
|
||||
default_args.native_func_definition_generator
|
||||
)
|
||||
|
||||
run_gen_lazy_tensor(
|
||||
aten_path,
|
||||
|
Reference in New Issue
Block a user