We need to add functionality to ML.NET to be able to extract information about the names/types/sizes of the input and output layers in a DNN model (this applies to both TensorFlow and ONNX models).
One possible way to do this is to add to ML.NET an auxiliary console application that can list that information given a model. Another option is to add a utility method that returns this information as a schema object that can be explored by the user.