reshaped_features = {}
for name in example_feature_columns:
if name not in features:
continue
batch_size = tf.shape(input=features[name])[0]
try:
reshaped_features[name] = utils.reshape_first_ndims(
features[name], 2, [batch_size * input_size])
After Change
reshaped_features = {}
for name in example_specs:
if name not in features:
tf.compat.v1.logging.warn("Feature {} is not found.".format(name))continue
batch_size = tf.shape(input=features[name])[0]
try:
reshaped_features[name] = utils.reshape_first_ndims(
features[name], 2, [batch_size * input_size])