-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f667832
commit 59156d2
Showing
7 changed files
with
104 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import compiler_opt.es.blackbox_learner | ||
import compiler_opt.rl.gin_external_configurables | ||
import compiler_opt.es.blackbox_optimizers | ||
|
||
# Blackbox learner config | ||
BlackboxLearnerConfig.total_steps = 1 | ||
BlackboxLearnerConfig.total_num_perturbations = 5 | ||
BlackboxLearnerConfig.blackbox_optimizer = %blackbox_optimizers.Algorithm.MONTE_CARLO | ||
BlackboxLearnerConfig.est_type = %blackbox_optimizers.EstimatorType.ANTITHETIC | ||
# BlackboxLearnerConfig.est_type = %blackbox_optimizers.EstimatorType.FORWARD_FD | ||
BlackboxLearnerConfig.fvalues_normalization = True | ||
BlackboxLearnerConfig.hyperparameters_update_method = %blackbox_optimizers.UpdateMethod.NO_METHOD | ||
|
||
BlackboxLearnerConfig.num_top_directions = 0 | ||
|
||
# BlackboxLearnerConfig.precision_parameter = 0.025 | ||
BlackboxLearnerConfig.precision_parameter = 0.5 | ||
|
||
# Try the 0.0005 step size next | ||
BlackboxLearnerConfig.step_size = 0.005 | ||
# BlackboxLearnerConfig.step_size = 0.0005 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import compiler_opt.rl.gin_external_configurables | ||
import compiler_opt.rl.regalloc.config | ||
import compiler_opt.rl.regalloc.regalloc_network | ||
|
||
include 'compiler_opt/rl/regalloc/gin_configs/common.gin' | ||
|
||
regalloc.config.get_observation_processing_layer_creator.quantile_file_dir='compiler_opt/rl/regalloc/vocab' | ||
regalloc.config.get_observation_processing_layer_creator.with_sqrt = False | ||
regalloc.config.get_observation_processing_layer_creator.with_z_score_normalization = False | ||
|
||
RegAllocNetwork.preprocessing_combiner=@tf.keras.layers.Concatenate() | ||
RegAllocNetwork.fc_layer_params=(80, 40) | ||
RegAllocNetwork.dropout_layer_params=None | ||
[email protected] | ||
|
||
policy_utils.create_actor_policy.actor_network_ctor = @regalloc_network.RegAllocNetwork | ||
policy_utils.create_actor_policy.greedy = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters