mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
This will add pyrefly to lint runner as a warning only - and allow us to collect feedback about the tool before switching to pyrefly as the main type checker. References the steps outlined here: : https://github.com/pytorch/pytorch/issues/163283: test plan: `lintrunner init` `lintrunner` confirm when pyrefly errors are present results look like: https://gist.github.com/maggiemoss/e6cb2d015dd1ded560ae1329098cf33f Pull Request resolved: https://github.com/pytorch/pytorch/pull/165179 Approved by: https://github.com/ezyang
49 lines
1.3 KiB
Python
49 lines
1.3 KiB
Python
from . import parametrizations, parametrize, rnn, stateless
|
|
from .clip_grad import ( # pyrefly: ignore # deprecated
|
|
_clip_grads_with_norm_ as clip_grads_with_norm_,
|
|
_get_total_norm as get_total_norm,
|
|
clip_grad_norm,
|
|
clip_grad_norm_,
|
|
clip_grad_value_,
|
|
)
|
|
from .convert_parameters import parameters_to_vector, vector_to_parameters
|
|
from .fusion import (
|
|
fuse_conv_bn_eval,
|
|
fuse_conv_bn_weights,
|
|
fuse_linear_bn_eval,
|
|
fuse_linear_bn_weights,
|
|
)
|
|
from .init import skip_init
|
|
from .memory_format import (
|
|
convert_conv2d_weight_memory_format,
|
|
convert_conv3d_weight_memory_format,
|
|
)
|
|
from .spectral_norm import remove_spectral_norm, spectral_norm
|
|
from .weight_norm import remove_weight_norm, weight_norm
|
|
|
|
|
|
__all__ = [
|
|
"clip_grad_norm",
|
|
"clip_grad_norm_",
|
|
"clip_grads_with_norm_",
|
|
"clip_grad_value_",
|
|
"convert_conv2d_weight_memory_format",
|
|
"convert_conv3d_weight_memory_format",
|
|
"fuse_conv_bn_eval",
|
|
"fuse_conv_bn_weights",
|
|
"fuse_linear_bn_eval",
|
|
"fuse_linear_bn_weights",
|
|
"get_total_norm",
|
|
"parameters_to_vector",
|
|
"parametrizations",
|
|
"parametrize",
|
|
"remove_spectral_norm",
|
|
"remove_weight_norm",
|
|
"rnn",
|
|
"skip_init",
|
|
"spectral_norm",
|
|
"stateless",
|
|
"vector_to_parameters",
|
|
"weight_norm",
|
|
]
|