@@ -575,7 +575,7 @@ def impl_get_task_ip(cluster_name, task_arn, region):
575
575
return nics [0 ]["Association" ]["PublicIp" ]
576
576
577
577
578
- def impl_upload_untrained_model_file (model_path , bucket_name , region ):
578
+ def impl_upload_untrained_model (model_path , bucket_name , region ):
579
579
"""
580
580
Uploads an untrained model to S3.
581
581
@@ -589,7 +589,7 @@ def impl_upload_untrained_model_file(model_path, bucket_name, region):
589
589
print ("Uploaded to: {}\n " .format (key ))
590
590
591
591
592
- def impl_download_untrained_model_file (model_path , bucket_name , region ):
592
+ def impl_download_untrained_model (model_path , bucket_name , region ):
593
593
"""
594
594
Downloads an untrained model from S3.
595
595
@@ -603,7 +603,7 @@ def impl_download_untrained_model_file(model_path, bucket_name, region):
603
603
print ("Downloaded from: {}\n " .format (key ))
604
604
605
605
606
- def impl_upload_trained_model_file (model_path , bucket_name , region ):
606
+ def impl_upload_trained_model (model_path , bucket_name , region ):
607
607
"""
608
608
Uploads an trained model to S3.
609
609
@@ -617,7 +617,7 @@ def impl_upload_trained_model_file(model_path, bucket_name, region):
617
617
print ("Uploaded to: {}\n " .format (key ))
618
618
619
619
620
- def impl_download_trained_model_file (model_path , bucket_name , region ):
620
+ def impl_download_trained_model (model_path , bucket_name , region ):
621
621
"""
622
622
Downloads an trained model from S3.
623
623
@@ -792,56 +792,56 @@ def get_container_ip(task_arn, region):
792
792
print (impl_get_task_ip ("axon-autogenerated-cluster" , task_arn , region ))
793
793
794
794
795
- @cli .command (name = "upload-untrained-model-file " )
795
+ @cli .command (name = "upload-untrained-model" )
796
796
@click .argument ("model-path" )
797
797
@click .option ("--region" , help = "The region to connect to." ,
798
798
type = click .Choice (region_choices ))
799
- def upload_untrained_model_file (model_path , region ):
799
+ def upload_untrained_model (model_path , region ):
800
800
"""
801
801
Uploads an untrained model from a local file.
802
802
803
803
MODEL_PATH The path to the model to upload, ending with the name of the model.
804
804
"""
805
- impl_upload_untrained_model_file (model_path , ensure_s3_bucket (region ), region )
805
+ impl_upload_untrained_model (model_path , ensure_s3_bucket (region ), region )
806
806
807
807
808
- @cli .command (name = "download-untrained-model-file " )
808
+ @cli .command (name = "download-untrained-model" )
809
809
@click .argument ("model-path" )
810
810
@click .option ("--region" , help = "The region to connect to." ,
811
811
type = click .Choice (region_choices ))
812
- def download_untrained_model_file (model_path , region ):
812
+ def download_untrained_model (model_path , region ):
813
813
"""
814
814
Downloads an untrained model to a local file.
815
815
816
816
MODEL_PATH The path to download the model to, ending with the name of the model.
817
817
"""
818
- impl_download_untrained_model_file (model_path , ensure_s3_bucket (region ), region )
818
+ impl_download_untrained_model (model_path , ensure_s3_bucket (region ), region )
819
819
820
820
821
- @cli .command (name = "upload-trained-model-file " )
821
+ @cli .command (name = "upload-trained-model" )
822
822
@click .argument ("model-path" )
823
823
@click .option ("--region" , help = "The region to connect to." ,
824
824
type = click .Choice (region_choices ))
825
- def upload_trained_model_file (model_path , region ):
825
+ def upload_trained_model (model_path , region ):
826
826
"""
827
827
Uploads a trained model from a local file.
828
828
829
829
MODEL_PATH The path to the model to upload, ending with the name of the model.
830
830
"""
831
- impl_upload_trained_model_file (model_path , ensure_s3_bucket (region ), region )
831
+ impl_upload_trained_model (model_path , ensure_s3_bucket (region ), region )
832
832
833
833
834
- @cli .command (name = "download-trained-model-file " )
834
+ @cli .command (name = "download-trained-model" )
835
835
@click .argument ("model-path" )
836
836
@click .option ("--region" , help = "The region to connect to." ,
837
837
type = click .Choice (region_choices ))
838
- def download_trained_model_file (model_path , region ):
838
+ def download_trained_model (model_path , region ):
839
839
"""
840
840
Downloads a trained model to a local file.
841
841
842
842
MODEL_PATH The path to download the model to, ending with the name of the model.
843
843
"""
844
- impl_download_trained_model_file (model_path , ensure_s3_bucket (region ), region )
844
+ impl_download_trained_model (model_path , ensure_s3_bucket (region ), region )
845
845
846
846
847
847
@cli .command (name = "download-training-script" )
0 commit comments