Detailed description:
In this PR, we make sure the output shape is the same as the input shape. The bug was from incorrect loop bound (tensor shape) collection when printing the tensor.
Link to the tests:
tests/issues/test_issue_408.py
A separate test is also added under tests/test_api_print.py
Fixed issue: #408
Detailed description: In this PR, we make sure the output shape is the same as the input shape. The bug was from incorrect loop bound (tensor shape) collection when printing the tensor.
Link to the tests: tests/issues/test_issue_408.py A separate test is also added under tests/test_api_print.py