File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -959,12 +959,6 @@ def get_data(
959959 for k , v in parameters .items ():
960960 data [k ] = v
961961
962- # 4. Store types of selected precision dict in "data" dict.
963- if self .info .init .types_dict_name != "" :
964- data [self .info .init .types_dict_name ] = self ._get_types_dict (
965- framework , global_precision , self .info .init .precision
966- )
967-
968962 if self .info .init :
969963 self .get_data_init (framework , global_precision , data )
970964
@@ -990,9 +984,14 @@ def get_data_init(
990984 Returns: Dictionary with benchmark inputs as key
991985 and initialized data as value.
992986 """
987+ # 4. Store types of selected precision dict in "data" dict.
988+ if self .info .init .types_dict_name != "" :
989+ data [self .info .init .types_dict_name ] = self ._get_types_dict (
990+ framework , global_precision , self .info .init .precision
991+ )
992+
993993 # 5. Call the initialize_fn with the input args and store the results
994994 # in the "data" dict.
995-
996995 init_input_args_list = self .info .init .input_args
997996 init_input_args_val_list = []
998997 for arg in init_input_args_list :
You can’t perform that action at this time.
0 commit comments