Open
Description
Bug Description
- Should this be moved to aten_ops_converters.py?
- I tried to pass in static shape ITensor end to the test case of this converter but got error: aten::arange() Expected a value of type 'number' for argument 'end' but instead found type 'FakeTensor'. because the schema says the type of the arguments is Scalar
- In terms of the implementation, 1) shape seems not to be always valid, 2) output type is decided by end.dtype but it's possible the start is float and end is int. e.g.
torch.arange(1.2, 15, 2.2)
tensor([ 1.2000, 3.4000, 5.6000, 7.8000, 10.0000, 12.2000, 14.4000])
torch.ops.aten.div.Tensor_mode(13.8, 2.2, rounding_mode="trunc")
tensor(6.)
I think the actual length should be 7 but the length of shape is 6. Please correct me if I'm wrong.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
Build information about Torch-TensorRT can be found by turning on debug messages
- Torch-TensorRT Version (e.g. 1.0.0):
- PyTorch Version (e.g. 1.0):
- CPU Architecture:
- OS (e.g., Linux):
- How you installed PyTorch (
conda
,pip
,libtorch
, source): - Build command you used (if compiling from source):
- Are you using local sources or building from archives:
- Python version:
- CUDA version:
- GPU models and configuration:
- Any other relevant information: