Tensorflow 2 中的外部推理上下文(shape_refiner.cc)是什么?

kel*_*kka 7 c# c++ python tensorflow tensorflow2.0

这是来自Tensorflow'sgithub 页面的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);
}
Run Code Online (Sandbox Code Playgroud)

我不断收到上面代码中设置的警告,这对我来说毫无意义。我应该更改我的代码还是这对我的培训过程无害?这个问题链接到我的另一个问题:How to combine a pre-trained KerasLayer from TensorFlow (v. 2) Hub and tfrecords?