The call is mandatory before a model can be run. This function might be called from the render thread, if not it is up to the caller to ensure thread safety. The function will run shape inference and resolve, if possible, the output shapes which can then be accessed by callingGetOutputTensorShapes(). This is a potentially expensive call and should be called lazily if possible.