AnandInguva commented on code in PR #25321:
URL: https://github.com/apache/beam/pull/25321#discussion_r1099236711
##########
sdks/python/apache_beam/ml/inference/pytorch_inference.py:
##########
@@ -174,6 +186,9 @@ def __init__(
Otherwise, it will be CPU.
inference_fn: the inference function to use during RunInference.
default=_default_tensor_inference_fn
+ use_torch_script_format: When `use_torch_script_format` is set to `True`,
+ the model will be loaded using `torch.jit.load()`.
+ `model_class` and `model_params` arguments will be disregarded.
Review Comment:
I like the approach `torchscript_model_path`. I will change the code. Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]