使用时,是否有办法禁用自动张力板记录
tf.estimator.Estimator
上课?
# Classifier
classifier = tf.estimator.Estimator(
model_fn=lambda features, labels, mode, params: model(features, labels, mode, params, word_embeddings),
params=params,
model_dir=str(MODEL_DIR),
tensorboard=Fasle) # <---- Something like that?
for _ in range(params['epochs']):
classifier.train(input_fn=lambda: input_fn(generator, example_generator._data['train'] ,batch_size=params['batch_size']))
classifier.evaluate(input_fn=lambda: input_fn(generator, example_generator._data['validation'], batch_size=params['batch_size']))
我通读了这本书
tf.estimator.RunConfig