Commit aaa78260 authored by 宋柯's avatar 宋柯

模型调试

parent 921c3613
...@@ -216,7 +216,7 @@ session_config = tf.compat.v1.ConfigProto(allow_soft_placement = True) ...@@ -216,7 +216,7 @@ session_config = tf.compat.v1.ConfigProto(allow_soft_placement = True)
session_config.gpu_options.allow_growth = True session_config.gpu_options.allow_growth = True
config = tf.estimator.RunConfig(save_checkpoints_steps = 3000, train_distribute = distribution, eval_distribute = distribution) config = tf.estimator.RunConfig(save_checkpoints_steps = 1500, train_distribute = distribution, eval_distribute = distribution)
# config = tf.estimator.RunConfig(save_checkpoints_steps = 3000, session_config = session_config) # config = tf.estimator.RunConfig(save_checkpoints_steps = 3000, session_config = session_config)
...@@ -233,7 +233,7 @@ wideAndDeepModel = tf.estimator.DNNLinearCombinedClassifier(model_dir = MODEL_BA ...@@ -233,7 +233,7 @@ wideAndDeepModel = tf.estimator.DNNLinearCombinedClassifier(model_dir = MODEL_BA
hooks = [] hooks = []
train_spec = tf.estimator.TrainSpec(input_fn = lambda: input_fn(BASE_DIR + 'train_samples.csv', 20, True, 1024), hooks = hooks) train_spec = tf.estimator.TrainSpec(input_fn = lambda: input_fn(BASE_DIR + 'train_samples.csv', 100, True, 2048), hooks = hooks)
serving_feature_spec = tf.feature_column.make_parse_example_spec( serving_feature_spec = tf.feature_column.make_parse_example_spec(
linear_feature_columns + dnn_feature_columns) linear_feature_columns + dnn_feature_columns)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment