tf.logging.fatal("CSVReader requires task input keywords %s, but "
"not exist in the config file.\n"
"Available task keywords: %s",
self.names, list(task_param))
raise ValueError
self.names = valid_names
self.data_param = data_param
After Change
if not task_param:
task_param = {mod: (mod,) for mod in list(data_param)}
try:
if not isinstance(task_param, dict):
task_param = vars(task_param)
except ValueError:
tf.logging.fatal(
"To concatenate multiple input data arrays,\n"
"task_param should be a dictionary in the form:\n"