@@ -78,28 +78,6 @@ def validate_args(self, args):
7878 raise ValueError ("The specified framework is not supported: {}" .
7979 format (args .framework ))
8080
81- # check checkpoint location
82- checkpoint_dir = args .checkpoint
83- if checkpoint_dir is not None :
84- if not os .path .exists (checkpoint_dir ):
85- raise IOError ("The checkpoint location {} does not exist." .
86- format (checkpoint_dir ))
87- elif not os .path .isdir (checkpoint_dir ):
88- raise IOError ("The checkpoint location {} is not a directory." .
89- format (checkpoint_dir ))
90- self .check_for_link ("checkpoint directory" , checkpoint_dir )
91-
92- # check if input graph file exists
93- input_graph = args .input_graph
94- if input_graph is not None :
95- if not os .path .exists (input_graph ):
96- raise IOError ("The input graph {} does not exist." .
97- format (input_graph ))
98- if not os .path .isfile (input_graph ):
99- raise IOError ("The input graph {} must be a file." .
100- format (input_graph ))
101- self .check_for_link ("input graph" , input_graph )
102-
10381 # if neither benchmark_only or accuracy_only are specified, then enable
10482 # benchmark_only as the default
10583 if not args .benchmark_only and not args .accuracy_only :
0 commit comments