mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: There is a module called `2to3` which you can target for future specifically to remove these, the directory of `caffe2` has the most redundant imports: ```2to3 -f future -w caffe2``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/45033 Reviewed By: seemethere Differential Revision: D23808648 Pulled By: bugra fbshipit-source-id: 38971900f0fe43ab44a9168e57f2307580d36a38
50 lines
1.4 KiB
Python
50 lines
1.4 KiB
Python
|
|
|
|
|
|
|
|
|
|
# Input
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
gfs_IN1k as gfs_IN1k # noqa
|
|
|
|
# model
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
IN1k_resnet as IN1k_resnet # noqa
|
|
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
IN1k_resnet_no_test_model as IN1k_resnet_no_test_model # noqa
|
|
|
|
# Additional override
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
override_no_test_model_no_checkpoint as override_no_test_model_no_checkpoint # noqa
|
|
|
|
# FORWARD_PASS
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
caffe2_resnet50_default_forward as caffe2_resnet50_default_forward # noqa
|
|
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
explicit_resnet_forward as explicit_resnet_forward # noqa
|
|
|
|
# PARAMETER_UPDATE
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
caffe2_resnet50_default_param_update as caffe2_resnet50_default_param_update # noqa
|
|
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
explicit_resnet_param_update as explicit_resnet_param_update # noqa
|
|
|
|
# RENDEZVOUS
|
|
import caffe2.contrib.playground.resnetdemo.\
|
|
rendezvous_filestore as rendezvous_filestore # noqa
|
|
|
|
# OUTPUT
|
|
import caffe2.contrib.playground.\
|
|
output_generator as output_generator # noqa
|
|
|
|
# METERS
|
|
# for meters, use the class name as your module name in this map
|
|
import caffe2.contrib.playground.\
|
|
compute_loss as ComputeLoss # noqa
|
|
|
|
import caffe2.contrib.playground.\
|
|
compute_topk_accuracy as ComputeTopKAccuracy # noqa
|