-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Type Hints] 为公开 API 标注类型提示信息 #65008
Comments
✨️ 大家好!✨️ 此次任务为 为 Paddle 框架 API 添加类型提示(Type Hints) 的子任务。 即,将原本的 def log(x, name=None):
... 标注为: def log(x: paddle.Tensor, name: str | None = None) -> paddle.Tensor:
... Python 在 3.5 版本通过 PEP 484 – Type Hints 正式规范了 欢迎大家参与! 非常感谢!:) 🎉🎉🎉 此次参与的流程大致为:
|
标注 Q&A
|
python 3.8 至 python 3.9 类型标注映射表
常用类型标注参照
|
【报名】:A16,A17,A18,A19 |
【报名】:A-60 |
【报名】:A-2,A-4 |
【报名】:A-64 |
【报名】:A-47 |
【报名】:A-57 |
【报名】:A-8 |
【报名】:A-48、A-49、A-50、A-51 |
【报名】:A-3 |
1 similar comment
【报名】:A-3 |
【报名】:B-79,B-80,B-81 |
【报名】:C-1,C-2,C-3 |
【报名】:C-107,C-115 |
@haoyu2022 C-115 已经有人做了,可以跳过 ~ |
【报名】:C-107 |
[Type Hints] 为公开 API 标注类型提示信息 已全部完成,感谢参与的小伙伴们!
欢迎继续参与https://github.com/PaddlePaddle/Paddle/issues/61482! |
commit
bff34fbpython/paddle/distributed
模块难度稍高,可先认领其他模块任务 🤟🤟🤟🔚 第 1 批 🎉
python/paddle/tensor/array.py
python/paddle/tensor/attribute.py
python/paddle/tensor/creation.py
python/paddle/tensor/einsum.py
python/paddle/tensor/linalg.py
python/paddle/tensor/logic.py
python/paddle/tensor/manipulation.py
python/paddle/tensor/math.py
python/paddle/tensor/ops.py
python/paddle/tensor/random.py
python/paddle/tensor/search.py
python/paddle/tensor/stat.py
python/paddle/tensor/to_string.py
python/paddle/nn/layer/activation.py
python/paddle/nn/layer/common.py
python/paddle/nn/layer/container.py
🙋@liyongchao911
python/paddle/nn/layer/conv.py
python/paddle/nn/layer/distance.py
python/paddle/nn/layer/layers.py
🙋@liyongchao911
python/paddle/nn/layer/loss.py
python/paddle/nn/layer/norm.py
python/paddle/nn/layer/pooling.py
python/paddle/nn/layer/rnn.py
python/paddle/nn/layer/transformer.py
python/paddle/nn/layer/vision.py
python/paddle/vision/transforms/transforms.py
python/paddle/nn/initializer/assign.py
python/paddle/nn/initializer/bilinear.py
python/paddle/nn/initializer/constant.py
python/paddle/nn/initializer/dirac.py
python/paddle/nn/initializer/initializer.py
python/paddle/nn/initializer/kaiming.py
python/paddle/nn/initializer/normal.py
python/paddle/nn/initializer/orthogonal.py
python/paddle/nn/initializer/uniform.py
python/paddle/nn/initializer/xavier.py
python/paddle/optimizer/adadelta.py
python/paddle/optimizer/adagrad.py
python/paddle/optimizer/adam.py
python/paddle/optimizer/adamax.py
python/paddle/optimizer/adamw.py
python/paddle/optimizer/asgd.py
python/paddle/optimizer/lamb.py
python/paddle/optimizer/lbfgs.py
python/paddle/optimizer/momentum.py
python/paddle/optimizer/nadam.py
python/paddle/optimizer/optimizer.py
python/paddle/optimizer/radam.py
python/paddle/optimizer/rmsprop.py
python/paddle/optimizer/rprop.py
python/paddle/optimizer/sgd.py
🙋@DrRyanHuang
python/paddle/hapi/model.py
python/paddle/hapi/model_summary.py
python/paddle/nn/functional/activation.py
python/paddle/nn/functional/common.py
python/paddle/nn/functional/conv.py
python/paddle/nn/functional/distance.py
python/paddle/nn/functional/extension.py
python/paddle/nn/functional/flash_attention.py
python/paddle/nn/functional/input.py
python/paddle/nn/functional/loss.py
✅@Asthestarsfalll
python/paddle/nn/functional/norm.py
✅@Asthestarsfalll
python/paddle/nn/functional/pooling.py
python/paddle/nn/functional/sparse_attention.py
python/paddle/nn/functional/vision.py
✅@Asthestarsfalll
python/paddle/base/dygraph/math_op_patch.py
python/paddle/base/dygraph/tensor_patch_methods.py
python/paddle/regularizer.py
python/paddle/optimizer/lr.py
python/paddle/hub.py
python/paddle/sysconfig.py
setup.py
&python/setup.pyi
python/paddle/vision/models/alexnet.py
python/paddle/vision/models/densenet.py
python/paddle/vision/models/googlenet.py
python/paddle/vision/models/inceptionv3.py
python/paddle/vision/models/lenet.py
python/paddle/vision/models/mobilenetv1.py
python/paddle/vision/models/mobilenetv2.py
python/paddle/vision/models/mobilenetv3.py
python/paddle/vision/models/resnet.py
python/paddle/vision/models/shufflenetv2.py
python/paddle/vision/transforms/functional.py
python/paddle/vision/models/squeezenet.py
python/paddle/vision/models/vgg.py
python/paddle/vision/datasets/cifar.py
python/paddle/vision/datasets/flowers.py
python/paddle/vision/datasets/folder.py
python/paddle/vision/datasets/mnist.py
python/paddle/vision/datasets/voc2012.py
python/paddle/metric/metrics.py
python/paddle/vision/image.py
python/paddle/vision/ops.py
python/paddle/signal.py
python/paddle/fft.py
python/paddle/hapi/callbacks.py
python/paddle/io/dataloader/batch_sampler.py
python/paddle/io/dataloader/dataset.py
python/paddle/io/dataloader/sampler.py
python/paddle/io/dataloader/worker.py
🔚 第 2 批 🎉
python/paddle/io/reader.py
python/paddle/distribution/bernoulli.py
python/paddle/distribution/beta.py
python/paddle/distribution/binomial.py
python/paddle/distribution/categorical.py
python/paddle/distribution/cauchy.py
python/paddle/distribution/chi2.py
python/paddle/distribution/continuous_bernoulli.py
python/paddle/distribution/dirichlet.py
python/paddle/distribution/distribution.py
python/paddle/distribution/exponential.py
python/paddle/distribution/exponential_family.py
python/paddle/distribution/gamma.py
python/paddle/distribution/geometric.py
python/paddle/distribution/gumbel.py
python/paddle/distribution/independent.py
python/paddle/distribution/kl.py
python/paddle/distribution/laplace.py
python/paddle/distribution/lkj_cholesky.py
python/paddle/distribution/lognormal.py
python/paddle/distribution/multinomial.py
python/paddle/distribution/multivariate_normal.py
python/paddle/distribution/normal.py
python/paddle/distribution/poisson.py
python/paddle/distribution/student_t.py
python/paddle/distribution/transform.py
python/paddle/distribution/
transformed_distribution.py
python/paddle/distribution/uniform.py
python/paddle/distribution/variable.py
python/paddle/device/__init__.py
python/paddle/device/cuda/__init__.py
python/paddle/device/xpu/__init__.py
python/paddle/amp/amp_lists.py
python/paddle/amp/auto_cast.py
python/paddle/amp/debugging.py
python/paddle/amp/grad_scaler.py
python/paddle/amp/__init__.py
python/paddle/autograd/autograd.py
✅@enkilee
python/paddle/autograd/saved_tensors_hooks.py
✅@enkilee
python/paddle/autograd/backward_mode.py
python/paddle/autograd/ir_backward.py
python/paddle/autograd/py_layer.py
python/paddle/framework/framework.py
python/paddle/base/dygraph/base.py
python/paddle/framework/io.py
✅@SigureMo
python/paddle/framework/io_utils.py
✅@SigureMo
python/paddle/framework/random.py
python/paddle/cost_model/cost_model.py
python/paddle/base/layer_helper.py
python/paddle/static/input.py
python/paddle/static/io.py
python/paddle/onnx/export.py
✅@enkilee
python/paddle/utils/cpp_extension/cpp_extension.py
python/paddle/utils/cpp_extension/
extension_utils.py
python/paddle/utils/install_check.py
python/paddle/utils/lazy_import.py
python/paddle/utils/dlpack.py
python/paddle/utils/download.py
python/paddle/text/viterbi_decode.py
python/paddle/text/datasets/conll05.py
python/paddle/text/datasets/imdb.py
python/paddle/text/datasets/imikolov.py
python/paddle/text/datasets/movielens.py
python/paddle/text/datasets/uci_housing.py
python/paddle/text/datasets/wmt14.py
python/paddle/text/datasets/wmt16.py
python/paddle/sparse/binary.py
python/paddle/sparse/creation.py
python/paddle/sparse/multiary.py
python/paddle/sparse/unary.py
python/paddle/sparse/nn/layer/activation.py
python/paddle/sparse/nn/layer/conv.py
python/paddle/sparse/nn/layer/norm.py
python/paddle/sparse/nn/layer/pooling.py
python/paddle/sparse/nn/functional/activation.py
python/paddle/sparse/nn/functional/conv.py
python/paddle/sparse/nn/functional/pooling.py
python/paddle/sparse/nn/functional/transformer.py
python/paddle/profiler/profiler.py
🙋@Luohongzhige
python/paddle/profiler/profiler_statistic.py
🙋@Luohongzhige
python/paddle/profiler/utils.py
🙋@Luohongzhige
python/paddle/nn/quant/quant_layers.py
python/paddle/nn/quant/quantized_linear.py
python/paddle/nn/quant/stub.py
python/paddle/nn/utils/clip_grad_norm_.py
python/paddle/nn/utils/clip_grad_value_.py
python/paddle/nn/utils/spectral_norm_hook.py
python/paddle/nn/utils/transform_parameters.py
python/paddle/nn/utils/weight_norm_hook.py
python/paddle/inference/wrapper.py
✅@enkilee
python/paddle/check_import_scipy.py
python/paddle/batch.py
python/paddle/reader/decorator.py
python/paddle/hapi/dynamic_flops.py
✅@enkilee
✅B-95python/paddle/hapi/static_flops.py
python/paddle/base/framework.py
python/paddle/distributed/collective.py
python/paddle/distributed/entry_attr.py
python/paddle/distributed/parallel.py
python/paddle/distributed/parallel_with_gloo.py
🔚 第 3 批 🎉
python/paddle/distributed/spawn.py
🙋@Luohongzhige
python/paddle/distributed/rpc/rpc.py
🙋@Luohongzhige
python/paddle/distributed/auto_parallel/api.py
🙋@Luohongzhige
✅C-4python/paddle/distributed/auto_parallel/
interface.py
python/paddle/distributed/auto_parallel/
process_mesh.py
python/paddle/distributed/auto_parallel/random.py
✅C-7python/paddle/distributed/auto_parallel/
strategy.py
python/paddle/distributed/auto_parallel/static/
engine.py
✅C-9python/paddle/distributed/auto_parallel/
placement_type.py
python/paddle/distributed/checkpoint/
load_state_dict.py
python/paddle/distributed/checkpoint/
save_state_dict.py
python/paddle/distributed/communication/
all_gather.py
python/paddle/distributed/communication/
all_reduce.py
python/paddle/distributed/communication/
all_to_all.py
python/paddle/distributed/communication/
batch_isend_irecv.py
✅@enkilee
python/paddle/distributed/communication/
broadcast.py
✅@enkilee
python/paddle/distributed/communication/gather.py
python/paddle/distributed/communication/group.py
✅@Lans1ot
python/paddle/distributed/communication/recv.py
python/paddle/distributed/communication/reduce.py
🙋@successfulbarrier
python/paddle/distributed/communication/
reduce_scatter.py
🙋@Whsjrczr
python/paddle/distributed/communication/scatter.py
🙋@Whsjrczr
python/paddle/distributed/communication/send.py
🙋@Whsjrczr
python/paddle/distributed/communication/stream/
all_gather.py
🙋@Whsjrczr
python/paddle/distributed/communication/stream/
all_reduce.py
✅@enkilee
python/paddle/distributed/communication/stream/
all_to_all.py
✅@enkilee
python/paddle/distributed/communication/stream/
broadcast.py
python/paddle/distributed/communication/stream/
gather.py
python/paddle/distributed/communication/stream/
recv.py
python/paddle/distributed/communication/stream/
reduce.py
python/paddle/distributed/communication/stream/
reduce_scatter.py
python/paddle/distributed/communication/stream/
scatter.py
python/paddle/distributed/communication/stream/
send.py
python/paddle/distributed/fleet/fleet.py
✅C-35python/paddle/distributed/fleet/launch.py
✅C-36python/paddle/distributed/fleet/launch_utils.py
✅C-37python/paddle/distributed/fleet/model.py
✅C-38python/paddle/distributed/fleet/optimizer.py
✅C-39python/paddle/distributed/fleet/scaler.py
python/paddle/distributed/fleet/base/
distributed_strategy.py
python/paddle/distributed/fleet/base/
role_maker.py
python/paddle/distributed/fleet/base/topology.py
python/paddle/distributed/fleet/base/
util_factory.py
python/paddle/distributed/fleet/data_generator/
data_generator.py
python/paddle/distributed/fleet/dataset/
dataset.py
🙋@lwkhahaha
python/paddle/distributed/fleet/dataset/
index_dataset.py
python/paddle/distributed/fleet/utils/fs.py
✅C-48python/paddle/distributed/fleet/utils/
hybrid_parallel_inference.py
✅C-49python/paddle/distributed/fleet/utils/
mix_precision_utils.py
python/paddle/distributed/fleet/utils/ps_util.py
✅C-51python/paddle/distributed/fleet/utils/
sequence_parallel_utils.py
python/paddle/distributed/fleet/utils/
__init__.py
python/paddle/distributed/launch/main.py
python/paddle/distributed/sharding/
group_sharded.py
python/paddle/incubate/autotune.py
python/paddle/incubate/asp/asp.py
python/paddle/incubate/asp/
supported_layer_list.py
python/paddle/incubate/asp/utils.py
python/paddle/incubate/autograd/functional.py
python/paddle/incubate/autograd/primapi.py
python/paddle/incubate/autograd/primx.py
python/paddle/incubate/autograd/utils.py
python/paddle/incubate/framework/random.py
python/paddle/incubate/layers/nn.py
python/paddle/incubate/multiprocessing/
reductions.py
python/paddle/incubate/nn/loss.py
python/paddle/incubate/nn/functional/
blha_get_max_len.py
python/paddle/incubate/nn/functional/
block_multihead_attention.py
✅@Lans1ot
python/paddle/incubate/nn/functional/
fused_dot_product_attention.py
python/paddle/incubate/nn/functional/
fused_dropout_add.py
python/paddle/incubate/nn/functional/
fused_ec_moe.py
python/paddle/incubate/nn/functional/
fused_gate_attention.py
python/paddle/incubate/nn/functional/
fused_layer_norm.py
python/paddle/incubate/nn/functional/
fused_matmul_bias.py
python/paddle/incubate/nn/functional/
fused_rms_norm.py
python/paddle/incubate/nn/functional/
fused_rotary_position_embedding.py
python/paddle/incubate/nn/functional/
fused_transformer.py
✅@Lans1ot
python/paddle/incubate/nn/functional/
masked_multihead_attention.py
python/paddle/incubate/nn/functional/swiglu.py
python/paddle/incubate/nn/functional/
variable_length_memory_efficient_attention.py
python/paddle/incubate/nn/layer/
fused_dropout_add.py
✅C-82python/paddle/incubate/nn/layer/
fused_dropout_nd.py
python/paddle/incubate/nn/layer/fused_ec_moe.py
✅@enkilee
python/paddle/incubate/nn/layer/fused_linear.py
✅@enkilee
python/paddle/incubate/nn/layer/
fused_transformer.py
✅@enkilee
python/paddle/incubate/operators/
graph_khop_sampler.py
python/paddle/incubate/operators/
graph_reindex.py
python/paddle/incubate/operators/
graph_sample_neighbors.py
python/paddle/incubate/operators/
graph_send_recv.py
python/paddle/incubate/operators/resnet_unit.py
python/paddle/incubate/operators/
softmax_mask_fuse.py
python/paddle/incubate/operators/
softmax_mask_fuse_upper_triangle.py
python/paddle/incubate/operators/unzip.py
✅C-94python/paddle/incubate/optimizer/
distributed_fused_lamb.py
python/paddle/incubate/optimizer/lookahead.py
python/paddle/incubate/optimizer/modelaverage.py
✅C-97python/paddle/incubate/optimizer/
gradient_merge.py
✅C-98python/paddle/incubate/optimizer/
lars_momentum.py
python/paddle/incubate/optimizer/lbfgs.py
✅C-100python/paddle/incubate/optimizer/pipeline.py
✅C-101python/paddle/incubate/optimizer/recompute.py
python/paddle/incubate/optimizer/functional/
bfgs.py
python/paddle/incubate/optimizer/functional/
lbfgs.py
✅C-104python/paddle/incubate/passes/
fuse_resnet_unit_pass.py:fuse_resnet_unit_pass
python/paddle/incubate/tensor/math.py
python/paddle/base/backward.py
python/paddle/base/compiler.py
🙋@haoyu2022
🙋@lwkhahaha
✅C-108python/paddle/base/data_feed_desc.py
python/paddle/base/data_feeder.py
✅C-110python/paddle/base/dataset.py
python/paddle/base/executor.py
✅@SigureMo
python/paddle/base/initializer.py
✅C-113python/paddle/base/lod_tensor.py
python/paddle/base/param_attr.py
python/paddle/geometric/math.py
🙋@lwkhahaha
✅@enkilee
python/paddle/geometric/reindex.py
python/paddle/geometric/sampling/neighbors.py
python/paddle/geometric/message_passing/
send_recv.py
✅@enkilee
python/paddle/quantization/config.py
python/paddle/quantization/base_quanter.py
python/paddle/quantization/base_observer.py
python/paddle/quantization/factory.py
python/paddle/quantization/ptq.py
python/paddle/quantization/qat.py
python/paddle/audio/backends/init_backend.py
python/paddle/audio/backends/wave_backend.py
python/paddle/audio/datasets/esc50.py
python/paddle/audio/datasets/tess.py
python/paddle/audio/features/layers.py
python/paddle/audio/functional/functional.py
python/paddle/audio/functional/window.py
python/paddle/nn/clip.py
python/paddle/nn/decode.py
python/paddle/nn/initializer/lazy_init.py::LazyGuard
python/paddle/distributed/fleet/layers/mpu/mp_ops.py::split
python/paddle/distributed/fleet/recompute/
recompute.py::recompute_sequential
python/paddle/distributed/fleet/recompute/
recompute_hybrid.py::recompute_hybrid
⭐️ 提交PR 模版 ⭐️:
或者多个任务:
⭐️ 认领方式 ⭐️:
请大家以 comment 的形式认领任务,如:
状态介绍:
✅:已经完全迁移,所有单测都OK!
🟢:审核完毕待合入,合入之后完全迁移!
🔵:可认领!
🟡:当前阶段不需要人力继续跟进,下阶段推进
🚧:迁移中,单测还没有过,还没有审核完。
大致正常流程为:
🔵 -> 🚧 -> 🟢 -> ✅
异常流程为:
🔵 -> 🚧 -> 🟡
看板信息
The text was updated successfully, but these errors were encountered: