This is the code from Tensorflow's
github pages for shape_refiner.cc:
// TODO(b/134547156): TEMPORARY WORKAROUND. If input shape handle is not set
// in outer context, set _Arg node output shape to unknown.
if (outer_context->input(index).SameHandle(ShapeHandle())) {
LOG(WARNING) << "Function instantiation has undefined input shape at "
<< "index: " << index << " in the outer inference context.";
node_context->set_output(0, node_context->UnknownShape());
} else {
node_context->set_output(0, outer_context->input(index));
}
auto* resource = outer_context->input_handle_shapes_and_types(index);
if (resource) {
node_context->set_output_handle_shapes_and_types(0, *resource);
}
I keep getting the warning set in the above code and it means nothing to me. Should I change my code or is this harmless to my training process? This question links to my other question: How to combine a pre-trained KerasLayer from TensorFlow (v. 2) Hub and tfrecords?