message: test stack fix when dim is -1
diff: #include "torch/csrc/jit/ir/irparser.h"
  TEST(Converters, ATenStackPureTensorConvertsCorrectly) {
  - const auto graph = R"IR(
  - graph(%0 : Tensor,
  - %1 : Tensor):
  - %2 : Tensor[] = prim::ListConstruct(%0, %1)
  - %3 : int = prim::Constant[value=3]()
  - %4 : Tensor = aten::stack(%2, %3)
  - return (%4))IR";
  -
  + auto TestATenStackPureTensorConvertsCorrectly = [](const std::string& graph) {
  auto g = std::make_shared<torch::jit::Graph>();
  torch::jit::parseIR(graph, g.get());
  @@ -27,17 +20,28 @@ TEST(Converters, ATenStackPureTensorConvertsCorrectly) {
  ASSERT_TRUE(
  torch_tensorrt::tests::util::almostEqual(jit_results[0], trt_results[0].reshape_as(jit_results[0]), 2e-6));
  -}
  -
  -TEST(Converters, ATenStackDiffTensorConvertsCorrectly) {
  + };
  const auto graph = R"IR(
  graph(%0 : Tensor,
  - %1 : Float(4, 4, 4, strides=[16, 4, 1])):
  + %1 : Tensor):
  %2 : Tensor[] = prim::ListConstruct(%0, %1)
  - %3 : int = prim::Constant[value=1]()
  + %3 : int = prim::Constant[value=3]()
  + %4 : Tensor = aten::stack(%2, %3)
  + return (%4))IR";
  + const auto graph2 = R"IR(
  + graph(%0 : Tensor,
  + %1 : Tensor):
  + %2 : Tensor[] = prim::ListConstruct(%0, %1)
  + %3 : int = prim::Constant[value=-1]()
  %4 : Tensor = aten::stack(%2, %3)
  return (%4))IR";
  + TestATenStackPureTensorConvertsCorrectly(graph);
  + TestATenStackPureTensorConvertsCorrectly(graph2);
  +}
  +
  +TEST(Converters, ATenStackDiffTensorConvertsCorrectly) {
  + auto TestATenStackDiffTensorConvertsCorrectly = [](const std::string& graph) {
  auto g = std::make_shared<torch::jit::Graph>();
  torch::jit::parseIR(graph, g.get());
  @@ -52,4 +56,21 @@ TEST(Converters, ATenStackDiffTensorConvertsCorrectly) {
  ASSERT_TRUE(
  torch_tensorrt::tests::util::almostEqual(jit_results[0], trt_results[0].reshape_as(jit_results[0]), 2e-6));
  + };
  + const auto graph = R"IR(
  + graph(%0 : Tensor,
  + %1 : Float(4, 4, 4, strides=[16, 4, 1])):
  + %2 : Tensor[] = prim::ListConstruct(%0, %1)
  + %3 : int = prim::Constant[value=1]()
  + %4 : Tensor = aten::stack(%2, %3)
  + return (%4))IR";
  + const auto graph2 = R"IR(
  + graph(%0 : Tensor,
  + %1 : Float(4, 4, 4, strides=[16, 4, 1])):
  + %2 : Tensor[] = prim::ListConstruct(%0, %1)
  + %3 : int = prim::Constant[value=-1]()
  + %4 : Tensor = aten::stack(%2, %3)
  + return (%4))IR";
  + TestATenStackDiffTensorConvertsCorrectly(graph);
  + TestATenStackDiffTensorConvertsCorrectly(graph2);
  }
  