Torch_glow tests fail unless run separately

tkg.rahul: <p>Hi,</p>
<p>upon running python3.6 setup.py test --run_cmake all the tests are failing</p>
<p>============================================================= test session starts =============================================================<br>
platform linux – Python 3.6.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1<br>
rootdir: /home/kpit/glow_compiler/glow_new/torch_glow, inifile:<br>
plugins: colcon-core-0.5.10, cov-2.2.1<br>
collected 243 items</p>
<p>tests/functionality/blacklist_test.py …<br>
tests/functionality/conv_to_glow_test.py .FFF<br>
tests/functionality/fused_linear_test.py .<br>
tests/functionality/glow_compile_spec_test.py .<br>
tests/functionality/jit_vs_glow_path_test.py FFF<br>
tests/functionality/load_backend_specific_options_test.py F<br>
tests/functionality/max_fusion_merge_size_test.py …<br>
tests/functionality/min_graph_size_test.py .<br>
tests/functionality/only_tensor_outputs_test.py .<br>
tests/functionality/quantized_cut_in_the_middle_test.py F<br>
tests/functionality/randomize_constants_test.py .<br>
tests/functionality/remove_exceptions_test.py .<br>
tests/functionality/set_glow_backend_test.py .<br>
tests/functionality/to_glow_selective_test.py .<br>
tests/nodes/Int_test.py FF<br>
tests/nodes/adaptive_avg_pool2d_test.py FFF<br>
tests/nodes/add_test.py FFFFFFF<br>
tests/nodes/addmm_test.py FFF<br>
tests/nodes/avgpool2d_test.py FF<br>
tests/nodes/avgpool3d_test.py FF<br>
tests/nodes/batchnorm2d_test.py FF<br>
tests/nodes/batchnorm3d_test.py FF<br>
tests/nodes/bmm_test.py F<br>
tests/nodes/cat_test.py FF.<br>
tests/nodes/clamp_test.py F<br>
tests/nodes/constant_chunk_test.py FF<br>
tests/nodes/contiguous_test.py F<br>
tests/nodes/conv2d_test.py FsF<br>
tests/nodes/conv3d_test.py FFF<br>
tests/nodes/div_test.py FFFFFF<br>
tests/nodes/dropout_test.py FF<br>
tests/nodes/embedding_bag_test.py F<br>
tests/nodes/exp_test.py F<br>
tests/nodes/flatten_test.py FFFFFF<br>
tests/nodes/floor_div_test.py sFFFFF<br>
tests/nodes/floor_test.py F<br>
tests/nodes/gelu_test.py F<br>
tests/nodes/getattr_test.py F<br>
tests/nodes/layernorm_test.py FF<br>
tests/nodes/linear_test.py FFF<br>
tests/nodes/masked_fill_test.py FFFFF<br>
tests/nodes/matmul_test.py FFFFFFFF<br>
tests/nodes/max_test.py F<br>
tests/nodes/maxpool2d_test.py FF<br>
tests/nodes/mean_test.py FF<br>
tests/nodes/min_test.py F<br>
tests/nodes/mm_test.py F<br>
tests/nodes/mul_test.py FFFFFF<br>
tests/nodes/norm_test.py FFF<br>
tests/nodes/num_to_tensor_test.py FF<br>
tests/nodes/permute_test.py F<br>
tests/nodes/pow_test.py F<br>
tests/nodes/prelu_test.py F<br>
tests/nodes/quantized_add_relu_test.py FFF<br>
tests/nodes/quantized_add_test.py FFF<br>
tests/nodes/quantized_avgpool2d_test.py FF<br>
tests/nodes/quantized_avgpool3d_test.py FF<br>
tests/nodes/quantized_batchnorm2d_test.py FF<br>
tests/nodes/quantized_batchnorm3d_relu_test.py F<br>
tests/nodes/quantized_batchnorm3d_test.py FF<br>
tests/nodes/quantized_conv2d_relu_test.py FFF<br>
tests/nodes/quantized_conv2d_test.py FFFFFF<br>
tests/nodes/quantized_conv3d_relu_test.py FFF<br>
tests/nodes/quantized_conv3d_test.py FFFF<br>
tests/nodes/quantized_linear_test.py FFFs<br>
tests/nodes/quantized_maxpool_test.py FF<br>
tests/nodes/quantized_mul_test.py FFFF<br>
tests/nodes/quantized_relu_test.py FF<br>
tests/nodes/reciprocal_test.py FF<br>
tests/nodes/relu_test.py FF<br>
tests/nodes/reshape_test.py F<br>
tests/nodes/roi_align_rotated_test.py FFFFFFFF<br>
tests/nodes/roi_align_test.py FFFFFFF<br>
tests/nodes/rsub_test.py FFFFFF<br>
tests/nodes/sigmoid_test.py FF<br>
tests/nodes/size_test.py .<br>
tests/nodes/slice_test.py F<br>
tests/nodes/softmax_test.py FF.<br>
tests/nodes/sqrt_test.py FF<br>
tests/nodes/squeeze_test.py FFFF<br>
tests/nodes/stack_test.py F<br>
tests/nodes/sub_test.py FFFFFF<br>
tests/nodes/tanh_test.py FF<br>
tests/nodes/to_test.py FFF<br>
tests/nodes/topk_test.py F<br>
tests/nodes/transpose_test.py FFFFFF.<br>
tests/nodes/typeas_test.py FFFFFF<br>
tests/nodes/unsqueeze_test.py FFFFFF<br>
tests/nodes/upsample_test.py FFFFFF<br>
tests/nodes/view_test.py F</p>
<p>However upon running python3.6 -m pytest nodes<br>
219 passed, 3 skipped in 19.03 seconds (All most all test passed)</p>
<p>Requesting help on the same?</p>

jfix: <p>Thanks for reporting this – would you mind creating an issue on Github for this to move the conversation there?</p>