Hi,
If someone gives me (my C++ code) a model to run, I’d like to validate the input size it requires, and the number of elements in its output. I can get the number of output elements by loading the model and  unsigned n_outputs = model.forward({test_input}).toTensor().numel().
However how to size the test_input tensor? Currently I’m just making one with the dimensions suggested by a config, but would like to query the model directly. I’m assuming there is something to be done with model.get_method("forward") as suggested by How to retrieve number of outputs of a model? 1 but instead of “num_inputs()” I’d like “number of elements required in input tensor 0”.
Thanks,
FDS