Commit 281d1757 authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Fix bug introduced.

PiperOrigin-RevId: 283447458
parent 1dffde32
......@@ -32,7 +32,6 @@ import tensorflow as tf
from official.benchmark import bert_benchmark_utils as benchmark_utils
from official.nlp import bert_modeling as modeling
from official.nlp.bert import input_pipeline
from official.nlp.bert import run_classifier
from official.utils.misc import distribution_utils
from official.utils.testing import benchmark_wrappers
......@@ -80,18 +79,16 @@ class BertClassifyBenchmarkBase(benchmark_utils.BertBenchmarkBase):
steps_per_loop = 1
max_seq_length = input_meta_data['max_seq_length']
train_input_fn = functools.partial(
input_pipeline.create_classifier_dataset,
train_input_fn = run_classifier.get_dataset_fn(
FLAGS.train_data_path,
seq_length=max_seq_length,
batch_size=FLAGS.train_batch_size)
eval_input_fn = functools.partial(
input_pipeline.create_classifier_dataset,
max_seq_length,
FLAGS.train_batch_size,
is_training=True)
eval_input_fn = run_classifier.get_dataset_fn(
FLAGS.eval_data_path,
seq_length=max_seq_length,
batch_size=FLAGS.eval_batch_size,
is_training=False,
drop_remainder=False)
max_seq_length,
FLAGS.eval_batch_size,
is_training=False)
run_classifier.run_bert_classifier(
strategy,
bert_config,
......
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