From e274b543f57d6b211cc1e4a9380032a716fae24b Mon Sep 17 00:00:00 2001 From: Azad Free Date: Thu, 4 Apr 2024 11:14:58 -0700 Subject: [PATCH] removing base_module for glow/glow/torch_glow/tests:test_utils Differential Revision: D55695991 --- torch_glow/tests/backends/NNPI/model_serialization_test.py | 2 +- .../tests/backends/NNPI/qconv_big_stride_small_kernel_test.py | 2 +- torch_glow/tests/functionality/blocklist_test.py | 2 +- torch_glow/tests/functionality/compilation_spec_test.py | 2 +- torch_glow/tests/functionality/conv_to_glow_test.py | 2 +- torch_glow/tests/functionality/fuse_parallel_branches_test.py | 2 +- torch_glow/tests/functionality/fused_linear_test.py | 2 +- torch_glow/tests/functionality/input_spec_test.py | 2 +- torch_glow/tests/functionality/jit_vs_glow_path_test.py | 2 +- .../tests/functionality/load_backend_specific_options_test.py | 2 +- torch_glow/tests/functionality/max_fusion_merge_size_test.py | 2 +- torch_glow/tests/functionality/min_graph_size_test.py | 2 +- torch_glow/tests/functionality/only_tensor_outputs_test.py | 2 +- torch_glow/tests/functionality/print_jit_index_test.py | 2 +- .../tests/functionality/quantized_cut_in_the_middle_test.py | 2 +- torch_glow/tests/functionality/randomize_constants_test.py | 2 +- torch_glow/tests/functionality/remove_exceptions_test.py | 2 +- torch_glow/tests/functionality/set_glow_backend_test.py | 2 +- torch_glow/tests/functionality/shape_inference_test.py | 2 +- .../tests/functionality/to_glow_multiple_input_sets_test.py | 2 +- .../tests/functionality/to_glow_num_devices_to_use_test.py | 2 +- .../tests/functionality/to_glow_save_preprocessed_test.py | 2 +- torch_glow/tests/functionality/to_glow_selective_test.py | 2 +- torch_glow/tests/functionality/to_glow_tuple_output_test.py | 2 +- torch_glow/tests/functionality/to_glow_write_to_onnx_test.py | 2 +- torch_glow/tests/nodes/Int_test.py | 2 +- torch_glow/tests/nodes/abs_test.py | 2 +- torch_glow/tests/nodes/adaptive_avg_pool2d_test.py | 2 +- torch_glow/tests/nodes/add_test.py | 2 +- torch_glow/tests/nodes/addmm_test.py | 2 +- torch_glow/tests/nodes/and_test.py | 2 +- torch_glow/tests/nodes/arange_test.py | 2 +- torch_glow/tests/nodes/arg_min_max_test.py | 2 +- torch_glow/tests/nodes/argsort_test.py | 2 +- torch_glow/tests/nodes/attention_test.py | 2 +- torch_glow/tests/nodes/avgpool1d_test.py | 2 +- torch_glow/tests/nodes/avgpool2d_test.py | 2 +- torch_glow/tests/nodes/avgpool3d_test.py | 2 +- torch_glow/tests/nodes/baddbmm_test.py | 2 +- torch_glow/tests/nodes/batch_permutation_test.py | 2 +- torch_glow/tests/nodes/batchnorm0d_test.py | 2 +- torch_glow/tests/nodes/batchnorm1d_test.py | 2 +- torch_glow/tests/nodes/batchnorm2d_test.py | 2 +- torch_glow/tests/nodes/batchnorm3d_test.py | 2 +- torch_glow/tests/nodes/bbox_transform_test.py | 2 +- torch_glow/tests/nodes/bitwise_and_test.py | 2 +- torch_glow/tests/nodes/bitwise_not_test.py | 2 +- torch_glow/tests/nodes/bitwise_or_test.py | 2 +- torch_glow/tests/nodes/bitwise_xor_test.py | 2 +- torch_glow/tests/nodes/bmm_test.py | 2 +- torch_glow/tests/nodes/cat_test.py | 2 +- torch_glow/tests/nodes/ceil_test.py | 2 +- torch_glow/tests/nodes/clamp_min_test.py | 2 +- torch_glow/tests/nodes/clamp_test.py | 2 +- torch_glow/tests/nodes/clone_test.py | 2 +- torch_glow/tests/nodes/cmp_test.py | 2 +- torch_glow/tests/nodes/constant_chunk_test.py | 2 +- torch_glow/tests/nodes/contiguous_test.py | 2 +- torch_glow/tests/nodes/conv2d_test.py | 2 +- torch_glow/tests/nodes/conv3d_test.py | 2 +- torch_glow/tests/nodes/conv_transpose2d_test.py | 2 +- torch_glow/tests/nodes/copy_test.py | 2 +- torch_glow/tests/nodes/cumsum_test.py | 2 +- torch_glow/tests/nodes/detach_test.py | 2 +- torch_glow/tests/nodes/div_test.py | 2 +- torch_glow/tests/nodes/dropout_test.py | 2 +- torch_glow/tests/nodes/dynamic_qlinear_test.py | 2 +- torch_glow/tests/nodes/embedding_bag_test.py | 2 +- torch_glow/tests/nodes/embedding_test.py | 2 +- torch_glow/tests/nodes/erf_test.py | 2 +- torch_glow/tests/nodes/exp_test.py | 2 +- torch_glow/tests/nodes/expand_as_test.py | 2 +- torch_glow/tests/nodes/expand_test.py | 2 +- torch_glow/tests/nodes/flatten_test.py | 2 +- torch_glow/tests/nodes/floor_div_test.py | 2 +- torch_glow/tests/nodes/floor_test.py | 2 +- torch_glow/tests/nodes/fmod_test.py | 2 +- torch_glow/tests/nodes/full_like_test.py | 2 +- torch_glow/tests/nodes/gather_test.py | 2 +- torch_glow/tests/nodes/gelu_test.py | 2 +- torch_glow/tests/nodes/getattr_test.py | 2 +- torch_glow/tests/nodes/iand_test.py | 2 +- torch_glow/tests/nodes/index_put_test.py | 2 +- torch_glow/tests/nodes/index_select_test.py | 2 +- torch_glow/tests/nodes/layernorm_test.py | 2 +- torch_glow/tests/nodes/leaky_relu_test.py | 2 +- torch_glow/tests/nodes/linear_test.py | 2 +- torch_glow/tests/nodes/log_softmax_test.py | 2 +- torch_glow/tests/nodes/log_test.py | 2 +- torch_glow/tests/nodes/logical_ops_test.py | 2 +- torch_glow/tests/nodes/lstm_test.py | 2 +- torch_glow/tests/nodes/masked_fill_test.py | 2 +- torch_glow/tests/nodes/matmul_test.py | 2 +- torch_glow/tests/nodes/max_test.py | 2 +- torch_glow/tests/nodes/maxpool2d_test.py | 2 +- torch_glow/tests/nodes/mean_test.py | 2 +- torch_glow/tests/nodes/min_test.py | 2 +- torch_glow/tests/nodes/mm_test.py | 2 +- torch_glow/tests/nodes/mul_test.py | 2 +- torch_glow/tests/nodes/norm_test.py | 2 +- torch_glow/tests/nodes/num_to_tensor_test.py | 2 +- torch_glow/tests/nodes/permute_test.py | 2 +- torch_glow/tests/nodes/pixel_shuffle_test.py | 2 +- torch_glow/tests/nodes/pixel_unshuffle_test.py | 2 +- torch_glow/tests/nodes/pow_test.py | 2 +- torch_glow/tests/nodes/prelu_test.py | 2 +- torch_glow/tests/nodes/quantized_add_relu_test.py | 2 +- torch_glow/tests/nodes/quantized_add_test.py | 2 +- torch_glow/tests/nodes/quantized_avgpool2d_test.py | 2 +- torch_glow/tests/nodes/quantized_avgpool3d_test.py | 2 +- torch_glow/tests/nodes/quantized_batchnorm2d_test.py | 2 +- torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py | 2 +- torch_glow/tests/nodes/quantized_batchnorm3d_test.py | 2 +- torch_glow/tests/nodes/quantized_cat_test.py | 2 +- torch_glow/tests/nodes/quantized_conv2d_relu_test.py | 2 +- torch_glow/tests/nodes/quantized_conv2d_test.py | 2 +- torch_glow/tests/nodes/quantized_conv3d_relu_test.py | 2 +- torch_glow/tests/nodes/quantized_conv3d_test.py | 2 +- torch_glow/tests/nodes/quantized_layernorm_test.py | 2 +- torch_glow/tests/nodes/quantized_leaky_relu_test.py | 2 +- torch_glow/tests/nodes/quantized_linear_test.py | 2 +- torch_glow/tests/nodes/quantized_maxpool_test.py | 2 +- torch_glow/tests/nodes/quantized_mul_test.py | 2 +- torch_glow/tests/nodes/quantized_relu_test.py | 2 +- torch_glow/tests/nodes/reciprocal_test.py | 2 +- torch_glow/tests/nodes/relu_test.py | 2 +- torch_glow/tests/nodes/repeat_test.py | 2 +- torch_glow/tests/nodes/reshape_test.py | 2 +- torch_glow/tests/nodes/roi_align_rotated_test.py | 2 +- torch_glow/tests/nodes/roi_align_test.py | 2 +- torch_glow/tests/nodes/rsub_test.py | 2 +- torch_glow/tests/nodes/select_test.py | 2 +- torch_glow/tests/nodes/shape_as_tensor_test.py | 2 +- torch_glow/tests/nodes/sigmoid_test.py | 2 +- torch_glow/tests/nodes/size_test.py | 2 +- torch_glow/tests/nodes/slice_test.py | 2 +- torch_glow/tests/nodes/softmax_test.py | 2 +- torch_glow/tests/nodes/softplus_test.py | 2 +- torch_glow/tests/nodes/split_test.py | 2 +- torch_glow/tests/nodes/sqrt_test.py | 2 +- torch_glow/tests/nodes/squeeze_test.py | 2 +- torch_glow/tests/nodes/stack_test.py | 2 +- torch_glow/tests/nodes/sub_test.py | 2 +- torch_glow/tests/nodes/sum_test.py | 2 +- torch_glow/tests/nodes/tanh_test.py | 2 +- torch_glow/tests/nodes/to_test.py | 2 +- torch_glow/tests/nodes/topk_test.py | 2 +- torch_glow/tests/nodes/transpose_test.py | 2 +- torch_glow/tests/nodes/trig_ops_test.py | 2 +- torch_glow/tests/nodes/typeas_test.py | 2 +- torch_glow/tests/nodes/unsqueeze_test.py | 2 +- torch_glow/tests/nodes/upsample_test.py | 2 +- torch_glow/tests/nodes/view_test.py | 2 +- torch_glow/tests/nodes/zero_test.py | 2 +- 154 files changed, 154 insertions(+), 154 deletions(-) diff --git a/torch_glow/tests/backends/NNPI/model_serialization_test.py b/torch_glow/tests/backends/NNPI/model_serialization_test.py index 84f04d75b..fe4b3079c 100644 --- a/torch_glow/tests/backends/NNPI/model_serialization_test.py +++ b/torch_glow/tests/backends/NNPI/model_serialization_test.py @@ -6,7 +6,7 @@ import torch import torch.jit import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class Bar(torch.nn.Module): diff --git a/torch_glow/tests/backends/NNPI/qconv_big_stride_small_kernel_test.py b/torch_glow/tests/backends/NNPI/qconv_big_stride_small_kernel_test.py index 92a6ddfb8..b6c91d8b2 100644 --- a/torch_glow/tests/backends/NNPI/qconv_big_stride_small_kernel_test.py +++ b/torch_glow/tests/backends/NNPI/qconv_big_stride_small_kernel_test.py @@ -4,7 +4,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestQuantizedConv2dBigStrideSmallKernel(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/blocklist_test.py b/torch_glow/tests/functionality/blocklist_test.py index 4f6c6ae42..e7b9e477f 100644 --- a/torch_glow/tests/functionality/blocklist_test.py +++ b/torch_glow/tests/functionality/blocklist_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import GLOW_FUSION_GROUP, SUBGRAPH_ATTR diff --git a/torch_glow/tests/functionality/compilation_spec_test.py b/torch_glow/tests/functionality/compilation_spec_test.py index aad8bda38..3e2c6ae39 100644 --- a/torch_glow/tests/functionality/compilation_spec_test.py +++ b/torch_glow/tests/functionality/compilation_spec_test.py @@ -7,7 +7,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestCompilationSpec(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/conv_to_glow_test.py b/torch_glow/tests/functionality/conv_to_glow_test.py index 658331f61..0935510b5 100644 --- a/torch_glow/tests/functionality/conv_to_glow_test.py +++ b/torch_glow/tests/functionality/conv_to_glow_test.py @@ -7,7 +7,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils def create_model(x, relu, bias=True): diff --git a/torch_glow/tests/functionality/fuse_parallel_branches_test.py b/torch_glow/tests/functionality/fuse_parallel_branches_test.py index f720a4dda..5b9ce013a 100644 --- a/torch_glow/tests/functionality/fuse_parallel_branches_test.py +++ b/torch_glow/tests/functionality/fuse_parallel_branches_test.py @@ -7,7 +7,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestFuseParallelBranches(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/fused_linear_test.py b/torch_glow/tests/functionality/fused_linear_test.py index 4235a15f0..278e9e607 100644 --- a/torch_glow/tests/functionality/fused_linear_test.py +++ b/torch_glow/tests/functionality/fused_linear_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import graph_contains_str diff --git a/torch_glow/tests/functionality/input_spec_test.py b/torch_glow/tests/functionality/input_spec_test.py index 525e4700e..9e8a10b6f 100644 --- a/torch_glow/tests/functionality/input_spec_test.py +++ b/torch_glow/tests/functionality/input_spec_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils def get_compilation_spec(inputs): diff --git a/torch_glow/tests/functionality/jit_vs_glow_path_test.py b/torch_glow/tests/functionality/jit_vs_glow_path_test.py index 32af1f3f2..48d69585f 100644 --- a/torch_glow/tests/functionality/jit_vs_glow_path_test.py +++ b/torch_glow/tests/functionality/jit_vs_glow_path_test.py @@ -6,7 +6,7 @@ import torch import torch.nn.functional as F import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestJITVsGlowPath(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/load_backend_specific_options_test.py b/torch_glow/tests/functionality/load_backend_specific_options_test.py index dfb6bce4b..7599f1e81 100644 --- a/torch_glow/tests/functionality/load_backend_specific_options_test.py +++ b/torch_glow/tests/functionality/load_backend_specific_options_test.py @@ -7,7 +7,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestLoadBackendSpecificOptions(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/max_fusion_merge_size_test.py b/torch_glow/tests/functionality/max_fusion_merge_size_test.py index 27eea6698..deb075d55 100644 --- a/torch_glow/tests/functionality/max_fusion_merge_size_test.py +++ b/torch_glow/tests/functionality/max_fusion_merge_size_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import GLOW_FUSION_GROUP diff --git a/torch_glow/tests/functionality/min_graph_size_test.py b/torch_glow/tests/functionality/min_graph_size_test.py index 2ca7545d2..e7e011726 100644 --- a/torch_glow/tests/functionality/min_graph_size_test.py +++ b/torch_glow/tests/functionality/min_graph_size_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import GLOW_FUSION_GROUP diff --git a/torch_glow/tests/functionality/only_tensor_outputs_test.py b/torch_glow/tests/functionality/only_tensor_outputs_test.py index 436cbdb7f..e1b10efd0 100644 --- a/torch_glow/tests/functionality/only_tensor_outputs_test.py +++ b/torch_glow/tests/functionality/only_tensor_outputs_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import GLOW_FUSION_GROUP diff --git a/torch_glow/tests/functionality/print_jit_index_test.py b/torch_glow/tests/functionality/print_jit_index_test.py index cc6a9e649..24349a39a 100644 --- a/torch_glow/tests/functionality/print_jit_index_test.py +++ b/torch_glow/tests/functionality/print_jit_index_test.py @@ -3,7 +3,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestPrintJitNodeIndices(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/quantized_cut_in_the_middle_test.py b/torch_glow/tests/functionality/quantized_cut_in_the_middle_test.py index 1442440b7..43c254802 100644 --- a/torch_glow/tests/functionality/quantized_cut_in_the_middle_test.py +++ b/torch_glow/tests/functionality/quantized_cut_in_the_middle_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import GLOW_FUSION_GROUP diff --git a/torch_glow/tests/functionality/randomize_constants_test.py b/torch_glow/tests/functionality/randomize_constants_test.py index 527477182..1881780d4 100644 --- a/torch_glow/tests/functionality/randomize_constants_test.py +++ b/torch_glow/tests/functionality/randomize_constants_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class Model(torch.nn.Module): diff --git a/torch_glow/tests/functionality/remove_exceptions_test.py b/torch_glow/tests/functionality/remove_exceptions_test.py index e47b90b84..b0cc4eb12 100644 --- a/torch_glow/tests/functionality/remove_exceptions_test.py +++ b/torch_glow/tests/functionality/remove_exceptions_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import graph_contains_str diff --git a/torch_glow/tests/functionality/set_glow_backend_test.py b/torch_glow/tests/functionality/set_glow_backend_test.py index 7ae4a5f3a..efb491198 100644 --- a/torch_glow/tests/functionality/set_glow_backend_test.py +++ b/torch_glow/tests/functionality/set_glow_backend_test.py @@ -4,7 +4,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestSetGlowBackend(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/shape_inference_test.py b/torch_glow/tests/functionality/shape_inference_test.py index e3b1e9d8b..562880e1c 100644 --- a/torch_glow/tests/functionality/shape_inference_test.py +++ b/torch_glow/tests/functionality/shape_inference_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestGlowShapeInference(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/functionality/to_glow_multiple_input_sets_test.py b/torch_glow/tests/functionality/to_glow_multiple_input_sets_test.py index 7089aa4b8..7283feb73 100644 --- a/torch_glow/tests/functionality/to_glow_multiple_input_sets_test.py +++ b/torch_glow/tests/functionality/to_glow_multiple_input_sets_test.py @@ -3,7 +3,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class Foo(torch.nn.Module): diff --git a/torch_glow/tests/functionality/to_glow_num_devices_to_use_test.py b/torch_glow/tests/functionality/to_glow_num_devices_to_use_test.py index 68130fbb4..b13d6db2d 100644 --- a/torch_glow/tests/functionality/to_glow_num_devices_to_use_test.py +++ b/torch_glow/tests/functionality/to_glow_num_devices_to_use_test.py @@ -3,7 +3,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleModule(torch.nn.Module): diff --git a/torch_glow/tests/functionality/to_glow_save_preprocessed_test.py b/torch_glow/tests/functionality/to_glow_save_preprocessed_test.py index 881155261..434822317 100644 --- a/torch_glow/tests/functionality/to_glow_save_preprocessed_test.py +++ b/torch_glow/tests/functionality/to_glow_save_preprocessed_test.py @@ -6,7 +6,7 @@ import torch import torch.jit import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils # Use a model containing quantized::conv2d to verify preprocessed module is diff --git a/torch_glow/tests/functionality/to_glow_selective_test.py b/torch_glow/tests/functionality/to_glow_selective_test.py index ae36de0da..ebb44f1b4 100644 --- a/torch_glow/tests/functionality/to_glow_selective_test.py +++ b/torch_glow/tests/functionality/to_glow_selective_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class Qux(torch.nn.Module): diff --git a/torch_glow/tests/functionality/to_glow_tuple_output_test.py b/torch_glow/tests/functionality/to_glow_tuple_output_test.py index 247314bbe..03f9d50d4 100644 --- a/torch_glow/tests/functionality/to_glow_tuple_output_test.py +++ b/torch_glow/tests/functionality/to_glow_tuple_output_test.py @@ -5,7 +5,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import assertModulesEqual diff --git a/torch_glow/tests/functionality/to_glow_write_to_onnx_test.py b/torch_glow/tests/functionality/to_glow_write_to_onnx_test.py index c667b7a49..d1f147648 100644 --- a/torch_glow/tests/functionality/to_glow_write_to_onnx_test.py +++ b/torch_glow/tests/functionality/to_glow_write_to_onnx_test.py @@ -8,7 +8,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class Foo(torch.nn.Module): diff --git a/torch_glow/tests/nodes/Int_test.py b/torch_glow/tests/nodes/Int_test.py index 856db2780..d7300908b 100644 --- a/torch_glow/tests/nodes/Int_test.py +++ b/torch_glow/tests/nodes/Int_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleIntModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/abs_test.py b/torch_glow/tests/nodes/abs_test.py index 3fb1d3e9c..d8424b942 100644 --- a/torch_glow/tests/nodes/abs_test.py +++ b/torch_glow/tests/nodes/abs_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAbsModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/adaptive_avg_pool2d_test.py b/torch_glow/tests/nodes/adaptive_avg_pool2d_test.py index b8afecb9e..aca4774b7 100644 --- a/torch_glow/tests/nodes/adaptive_avg_pool2d_test.py +++ b/torch_glow/tests/nodes/adaptive_avg_pool2d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAdapativeAvgPool2dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/add_test.py b/torch_glow/tests/nodes/add_test.py index c13fe3747..4d92c587c 100644 --- a/torch_glow/tests/nodes/add_test.py +++ b/torch_glow/tests/nodes/add_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAddModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/addmm_test.py b/torch_glow/tests/nodes/addmm_test.py index c3fccd03e..afca232f8 100644 --- a/torch_glow/tests/nodes/addmm_test.py +++ b/torch_glow/tests/nodes/addmm_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAddMmModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/and_test.py b/torch_glow/tests/nodes/and_test.py index d2f054ee4..cdc99be3f 100644 --- a/torch_glow/tests/nodes/and_test.py +++ b/torch_glow/tests/nodes/and_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAndModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/arange_test.py b/torch_glow/tests/nodes/arange_test.py index f1a521cf0..dc94dd2d5 100644 --- a/torch_glow/tests/nodes/arange_test.py +++ b/torch_glow/tests/nodes/arange_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleArangeModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/arg_min_max_test.py b/torch_glow/tests/nodes/arg_min_max_test.py index d43d4344a..8d816e9dc 100644 --- a/torch_glow/tests/nodes/arg_min_max_test.py +++ b/torch_glow/tests/nodes/arg_min_max_test.py @@ -15,7 +15,7 @@ # pyre-ignore-all-errors import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class ArgMinModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/argsort_test.py b/torch_glow/tests/nodes/argsort_test.py index 858928b94..6033159c9 100644 --- a/torch_glow/tests/nodes/argsort_test.py +++ b/torch_glow/tests/nodes/argsort_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleArgSortModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/attention_test.py b/torch_glow/tests/nodes/attention_test.py index 528ea3d74..e204ede0d 100644 --- a/torch_glow/tests/nodes/attention_test.py +++ b/torch_glow/tests/nodes/attention_test.py @@ -20,7 +20,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAttentionModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/avgpool1d_test.py b/torch_glow/tests/nodes/avgpool1d_test.py index 03635fa8b..9d420433d 100644 --- a/torch_glow/tests/nodes/avgpool1d_test.py +++ b/torch_glow/tests/nodes/avgpool1d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAvgPool1dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/avgpool2d_test.py b/torch_glow/tests/nodes/avgpool2d_test.py index 1681f899a..fb70d7a6b 100644 --- a/torch_glow/tests/nodes/avgpool2d_test.py +++ b/torch_glow/tests/nodes/avgpool2d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAvgPool2dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/avgpool3d_test.py b/torch_glow/tests/nodes/avgpool3d_test.py index 9acff455f..ca93031c6 100644 --- a/torch_glow/tests/nodes/avgpool3d_test.py +++ b/torch_glow/tests/nodes/avgpool3d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleAvgPool3dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/baddbmm_test.py b/torch_glow/tests/nodes/baddbmm_test.py index d18668f6d..9ab811ce6 100644 --- a/torch_glow/tests/nodes/baddbmm_test.py +++ b/torch_glow/tests/nodes/baddbmm_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleBAddBmmModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/batch_permutation_test.py b/torch_glow/tests/nodes/batch_permutation_test.py index b43089fd1..b6f36f536 100644 --- a/torch_glow/tests/nodes/batch_permutation_test.py +++ b/torch_glow/tests/nodes/batch_permutation_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleBatchPermutationModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/batchnorm0d_test.py b/torch_glow/tests/nodes/batchnorm0d_test.py index 5ae14295a..e700c7081 100644 --- a/torch_glow/tests/nodes/batchnorm0d_test.py +++ b/torch_glow/tests/nodes/batchnorm0d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestBatchNorm0D(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/batchnorm1d_test.py b/torch_glow/tests/nodes/batchnorm1d_test.py index f4cb5d801..cff60d382 100644 --- a/torch_glow/tests/nodes/batchnorm1d_test.py +++ b/torch_glow/tests/nodes/batchnorm1d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestBatchNorm1D(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/batchnorm2d_test.py b/torch_glow/tests/nodes/batchnorm2d_test.py index bc057f910..f76cdf0ab 100644 --- a/torch_glow/tests/nodes/batchnorm2d_test.py +++ b/torch_glow/tests/nodes/batchnorm2d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestBatchNorm2D(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/batchnorm3d_test.py b/torch_glow/tests/nodes/batchnorm3d_test.py index ecd0d1155..7daceb2a7 100644 --- a/torch_glow/tests/nodes/batchnorm3d_test.py +++ b/torch_glow/tests/nodes/batchnorm3d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestBatchNorm3D(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/bbox_transform_test.py b/torch_glow/tests/nodes/bbox_transform_test.py index 0bbbcfffc..c4b105360 100644 --- a/torch_glow/tests/nodes/bbox_transform_test.py +++ b/torch_glow/tests/nodes/bbox_transform_test.py @@ -18,7 +18,7 @@ import numpy as np import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils def generate_rois(roi_counts, im_dims): diff --git a/torch_glow/tests/nodes/bitwise_and_test.py b/torch_glow/tests/nodes/bitwise_and_test.py index 51813b64d..0c04925bb 100644 --- a/torch_glow/tests/nodes/bitwise_and_test.py +++ b/torch_glow/tests/nodes/bitwise_and_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleBitwiseAndModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/bitwise_not_test.py b/torch_glow/tests/nodes/bitwise_not_test.py index 18cda38a6..fd7ac45c5 100644 --- a/torch_glow/tests/nodes/bitwise_not_test.py +++ b/torch_glow/tests/nodes/bitwise_not_test.py @@ -19,8 +19,8 @@ import unittest import torch +from glow.glow.torch_glow.tests.tests import utils from parameterized import parameterized -from tests import utils class SimpleBitwiseNotModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/bitwise_or_test.py b/torch_glow/tests/nodes/bitwise_or_test.py index af2d10ae1..0b9ba2fc0 100644 --- a/torch_glow/tests/nodes/bitwise_or_test.py +++ b/torch_glow/tests/nodes/bitwise_or_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleBitwiseOrModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/bitwise_xor_test.py b/torch_glow/tests/nodes/bitwise_xor_test.py index 3f6bb8413..166434b70 100644 --- a/torch_glow/tests/nodes/bitwise_xor_test.py +++ b/torch_glow/tests/nodes/bitwise_xor_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleBitwiseXorModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/bmm_test.py b/torch_glow/tests/nodes/bmm_test.py index b45d2f4dc..4903a0e2f 100644 --- a/torch_glow/tests/nodes/bmm_test.py +++ b/torch_glow/tests/nodes/bmm_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleBmmModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/cat_test.py b/torch_glow/tests/nodes/cat_test.py index a73c6ef55..efbcea9d1 100644 --- a/torch_glow/tests/nodes/cat_test.py +++ b/torch_glow/tests/nodes/cat_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleCatModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/ceil_test.py b/torch_glow/tests/nodes/ceil_test.py index f991c45e5..7788a04cf 100644 --- a/torch_glow/tests/nodes/ceil_test.py +++ b/torch_glow/tests/nodes/ceil_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleCeilModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/clamp_min_test.py b/torch_glow/tests/nodes/clamp_min_test.py index 137d0cd58..64716b876 100644 --- a/torch_glow/tests/nodes/clamp_min_test.py +++ b/torch_glow/tests/nodes/clamp_min_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleClampMinModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/clamp_test.py b/torch_glow/tests/nodes/clamp_test.py index 9d42bc4b5..977c80a51 100644 --- a/torch_glow/tests/nodes/clamp_test.py +++ b/torch_glow/tests/nodes/clamp_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleClampModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/clone_test.py b/torch_glow/tests/nodes/clone_test.py index caa99beb5..d4aeccd72 100644 --- a/torch_glow/tests/nodes/clone_test.py +++ b/torch_glow/tests/nodes/clone_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class CloneModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/cmp_test.py b/torch_glow/tests/nodes/cmp_test.py index f5c6f252d..39270abc2 100644 --- a/torch_glow/tests/nodes/cmp_test.py +++ b/torch_glow/tests/nodes/cmp_test.py @@ -19,7 +19,7 @@ from typing import Union import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleCompareOpsModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/constant_chunk_test.py b/torch_glow/tests/nodes/constant_chunk_test.py index dc3cfb201..e0e96651c 100644 --- a/torch_glow/tests/nodes/constant_chunk_test.py +++ b/torch_glow/tests/nodes/constant_chunk_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleChunkModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/contiguous_test.py b/torch_glow/tests/nodes/contiguous_test.py index ee57900ba..7ef2612fc 100644 --- a/torch_glow/tests/nodes/contiguous_test.py +++ b/torch_glow/tests/nodes/contiguous_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleContiguousModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/conv2d_test.py b/torch_glow/tests/nodes/conv2d_test.py index 04c1e9a8d..d112c49e1 100644 --- a/torch_glow/tests/nodes/conv2d_test.py +++ b/torch_glow/tests/nodes/conv2d_test.py @@ -21,7 +21,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleConv2dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/conv3d_test.py b/torch_glow/tests/nodes/conv3d_test.py index 9a4e3494f..4c73e6893 100644 --- a/torch_glow/tests/nodes/conv3d_test.py +++ b/torch_glow/tests/nodes/conv3d_test.py @@ -20,7 +20,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleConv3dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/conv_transpose2d_test.py b/torch_glow/tests/nodes/conv_transpose2d_test.py index 74997524d..02804e312 100644 --- a/torch_glow/tests/nodes/conv_transpose2d_test.py +++ b/torch_glow/tests/nodes/conv_transpose2d_test.py @@ -20,7 +20,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleConvTranspose2dModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/copy_test.py b/torch_glow/tests/nodes/copy_test.py index 8c3bd74ff..51d231042 100644 --- a/torch_glow/tests/nodes/copy_test.py +++ b/torch_glow/tests/nodes/copy_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class CopyModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/cumsum_test.py b/torch_glow/tests/nodes/cumsum_test.py index 81f9185ad..1e7e1899e 100644 --- a/torch_glow/tests/nodes/cumsum_test.py +++ b/torch_glow/tests/nodes/cumsum_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleCumSumModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/detach_test.py b/torch_glow/tests/nodes/detach_test.py index 3db31c7a3..3fa69d729 100644 --- a/torch_glow/tests/nodes/detach_test.py +++ b/torch_glow/tests/nodes/detach_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class DetachModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/div_test.py b/torch_glow/tests/nodes/div_test.py index 94b7ce897..8144686ea 100644 --- a/torch_glow/tests/nodes/div_test.py +++ b/torch_glow/tests/nodes/div_test.py @@ -19,7 +19,7 @@ from typing import Optional import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleDivModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/dropout_test.py b/torch_glow/tests/nodes/dropout_test.py index c45044d34..368b9dfba 100644 --- a/torch_glow/tests/nodes/dropout_test.py +++ b/torch_glow/tests/nodes/dropout_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleDropoutModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/dynamic_qlinear_test.py b/torch_glow/tests/nodes/dynamic_qlinear_test.py index 81afa5de3..0d67abaed 100644 --- a/torch_glow/tests/nodes/dynamic_qlinear_test.py +++ b/torch_glow/tests/nodes/dynamic_qlinear_test.py @@ -19,7 +19,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleDynQLinearModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/embedding_bag_test.py b/torch_glow/tests/nodes/embedding_bag_test.py index bcca3c24c..309b316f1 100644 --- a/torch_glow/tests/nodes/embedding_bag_test.py +++ b/torch_glow/tests/nodes/embedding_bag_test.py @@ -18,7 +18,7 @@ import numpy as np import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import check_skip, DEFAULT_BACKEND diff --git a/torch_glow/tests/nodes/embedding_test.py b/torch_glow/tests/nodes/embedding_test.py index f6c648a44..69c25f426 100644 --- a/torch_glow/tests/nodes/embedding_test.py +++ b/torch_glow/tests/nodes/embedding_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import check_skip diff --git a/torch_glow/tests/nodes/erf_test.py b/torch_glow/tests/nodes/erf_test.py index dbe76710b..ea7112a5f 100644 --- a/torch_glow/tests/nodes/erf_test.py +++ b/torch_glow/tests/nodes/erf_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleErfModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/exp_test.py b/torch_glow/tests/nodes/exp_test.py index 49d151ceb..03a39d3c7 100644 --- a/torch_glow/tests/nodes/exp_test.py +++ b/torch_glow/tests/nodes/exp_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleExpModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/expand_as_test.py b/torch_glow/tests/nodes/expand_as_test.py index d11bb8e35..2b33f38f9 100644 --- a/torch_glow/tests/nodes/expand_as_test.py +++ b/torch_glow/tests/nodes/expand_as_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class ExpandAsModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/expand_test.py b/torch_glow/tests/nodes/expand_test.py index 34cc61179..c943a4e81 100644 --- a/torch_glow/tests/nodes/expand_test.py +++ b/torch_glow/tests/nodes/expand_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class ExpandModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/flatten_test.py b/torch_glow/tests/nodes/flatten_test.py index eb214f744..374cf68e7 100644 --- a/torch_glow/tests/nodes/flatten_test.py +++ b/torch_glow/tests/nodes/flatten_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleFlattenModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/floor_div_test.py b/torch_glow/tests/nodes/floor_div_test.py index d5db39952..b08d334b1 100644 --- a/torch_glow/tests/nodes/floor_div_test.py +++ b/torch_glow/tests/nodes/floor_div_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleFloorDivideModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/floor_test.py b/torch_glow/tests/nodes/floor_test.py index 86357e93d..ff85cca7e 100644 --- a/torch_glow/tests/nodes/floor_test.py +++ b/torch_glow/tests/nodes/floor_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleFloorModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/fmod_test.py b/torch_glow/tests/nodes/fmod_test.py index c92ba6f06..7c0dd327e 100644 --- a/torch_glow/tests/nodes/fmod_test.py +++ b/torch_glow/tests/nodes/fmod_test.py @@ -17,8 +17,8 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch +from glow.glow.torch_glow.tests.tests import utils from parameterized import parameterized -from tests import utils class SimpleFmodModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/full_like_test.py b/torch_glow/tests/nodes/full_like_test.py index dac488fb4..93e3fd12c 100644 --- a/torch_glow/tests/nodes/full_like_test.py +++ b/torch_glow/tests/nodes/full_like_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestFullLike(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/gather_test.py b/torch_glow/tests/nodes/gather_test.py index 405c414af..1c53e9e03 100644 --- a/torch_glow/tests/nodes/gather_test.py +++ b/torch_glow/tests/nodes/gather_test.py @@ -15,7 +15,7 @@ # pyre-ignore-all-errors import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class GatherModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/gelu_test.py b/torch_glow/tests/nodes/gelu_test.py index 84f250778..1a2105797 100644 --- a/torch_glow/tests/nodes/gelu_test.py +++ b/torch_glow/tests/nodes/gelu_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleGeluModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/getattr_test.py b/torch_glow/tests/nodes/getattr_test.py index ec68abb8e..1863d3d8f 100644 --- a/torch_glow/tests/nodes/getattr_test.py +++ b/torch_glow/tests/nodes/getattr_test.py @@ -19,7 +19,7 @@ import torch import torch_glow -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from tests.utils import GLOW_FUSION_GROUP, SUBGRAPH_ATTR diff --git a/torch_glow/tests/nodes/iand_test.py b/torch_glow/tests/nodes/iand_test.py index 514170cc6..b3735e67b 100644 --- a/torch_glow/tests/nodes/iand_test.py +++ b/torch_glow/tests/nodes/iand_test.py @@ -19,7 +19,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleIandModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/index_put_test.py b/torch_glow/tests/nodes/index_put_test.py index e742b18e3..5a8e7993e 100644 --- a/torch_glow/tests/nodes/index_put_test.py +++ b/torch_glow/tests/nodes/index_put_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class IndexPutModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/index_select_test.py b/torch_glow/tests/nodes/index_select_test.py index c9b0e3de4..d3d737376 100644 --- a/torch_glow/tests/nodes/index_select_test.py +++ b/torch_glow/tests/nodes/index_select_test.py @@ -15,7 +15,7 @@ # pyre-ignore-all-errors import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class IndexSelectModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/layernorm_test.py b/torch_glow/tests/nodes/layernorm_test.py index de6528ed6..69cd994bd 100644 --- a/torch_glow/tests/nodes/layernorm_test.py +++ b/torch_glow/tests/nodes/layernorm_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleLayerNormModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/leaky_relu_test.py b/torch_glow/tests/nodes/leaky_relu_test.py index fe41baf52..f8f0c5d46 100644 --- a/torch_glow/tests/nodes/leaky_relu_test.py +++ b/torch_glow/tests/nodes/leaky_relu_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleLeakyReluModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/linear_test.py b/torch_glow/tests/nodes/linear_test.py index 58038cb9f..1733112ea 100644 --- a/torch_glow/tests/nodes/linear_test.py +++ b/torch_glow/tests/nodes/linear_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleLinearModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/log_softmax_test.py b/torch_glow/tests/nodes/log_softmax_test.py index b3687274f..b105f5921 100644 --- a/torch_glow/tests/nodes/log_softmax_test.py +++ b/torch_glow/tests/nodes/log_softmax_test.py @@ -20,7 +20,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleLogSoftmaxModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/log_test.py b/torch_glow/tests/nodes/log_test.py index 0aeca4eee..acd67804f 100644 --- a/torch_glow/tests/nodes/log_test.py +++ b/torch_glow/tests/nodes/log_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleLogModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/logical_ops_test.py b/torch_glow/tests/nodes/logical_ops_test.py index 54a32bdf1..c0ea485b3 100644 --- a/torch_glow/tests/nodes/logical_ops_test.py +++ b/torch_glow/tests/nodes/logical_ops_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleXorModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/lstm_test.py b/torch_glow/tests/nodes/lstm_test.py index 2f0b43cbb..86af12e81 100644 --- a/torch_glow/tests/nodes/lstm_test.py +++ b/torch_glow/tests/nodes/lstm_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestLSTM(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/masked_fill_test.py b/torch_glow/tests/nodes/masked_fill_test.py index fac784544..5f7554048 100644 --- a/torch_glow/tests/nodes/masked_fill_test.py +++ b/torch_glow/tests/nodes/masked_fill_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMaskedFillModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/matmul_test.py b/torch_glow/tests/nodes/matmul_test.py index 4a0b743ac..8645a75da 100644 --- a/torch_glow/tests/nodes/matmul_test.py +++ b/torch_glow/tests/nodes/matmul_test.py @@ -19,7 +19,7 @@ import random import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMatmulModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/max_test.py b/torch_glow/tests/nodes/max_test.py index 49d2cea23..8b2c5db76 100644 --- a/torch_glow/tests/nodes/max_test.py +++ b/torch_glow/tests/nodes/max_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMaxModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/maxpool2d_test.py b/torch_glow/tests/nodes/maxpool2d_test.py index d7a5f56f5..db6537e76 100644 --- a/torch_glow/tests/nodes/maxpool2d_test.py +++ b/torch_glow/tests/nodes/maxpool2d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMaxPool2dTest(torch.nn.Module): diff --git a/torch_glow/tests/nodes/mean_test.py b/torch_glow/tests/nodes/mean_test.py index 39a60c5aa..04d0ba2d8 100644 --- a/torch_glow/tests/nodes/mean_test.py +++ b/torch_glow/tests/nodes/mean_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMeanModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/min_test.py b/torch_glow/tests/nodes/min_test.py index 495ad1311..d175532f8 100644 --- a/torch_glow/tests/nodes/min_test.py +++ b/torch_glow/tests/nodes/min_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMinModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/mm_test.py b/torch_glow/tests/nodes/mm_test.py index 8fe153311..40a12ebe8 100644 --- a/torch_glow/tests/nodes/mm_test.py +++ b/torch_glow/tests/nodes/mm_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMmModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/mul_test.py b/torch_glow/tests/nodes/mul_test.py index 7e8c3c0fc..b19c52125 100644 --- a/torch_glow/tests/nodes/mul_test.py +++ b/torch_glow/tests/nodes/mul_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleMulModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/norm_test.py b/torch_glow/tests/nodes/norm_test.py index e9c23add5..5b20a0367 100644 --- a/torch_glow/tests/nodes/norm_test.py +++ b/torch_glow/tests/nodes/norm_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleNormModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/num_to_tensor_test.py b/torch_glow/tests/nodes/num_to_tensor_test.py index 9ce1170d3..917ddfb81 100644 --- a/torch_glow/tests/nodes/num_to_tensor_test.py +++ b/torch_glow/tests/nodes/num_to_tensor_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleNumToTensorModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/permute_test.py b/torch_glow/tests/nodes/permute_test.py index 189525217..13b4e9bc7 100644 --- a/torch_glow/tests/nodes/permute_test.py +++ b/torch_glow/tests/nodes/permute_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimplePermuteModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/pixel_shuffle_test.py b/torch_glow/tests/nodes/pixel_shuffle_test.py index 4f03593d0..dde7d19c0 100644 --- a/torch_glow/tests/nodes/pixel_shuffle_test.py +++ b/torch_glow/tests/nodes/pixel_shuffle_test.py @@ -19,7 +19,7 @@ import random import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimplePixelShuffleModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/pixel_unshuffle_test.py b/torch_glow/tests/nodes/pixel_unshuffle_test.py index b32a921fa..044f902bd 100644 --- a/torch_glow/tests/nodes/pixel_unshuffle_test.py +++ b/torch_glow/tests/nodes/pixel_unshuffle_test.py @@ -19,7 +19,7 @@ import random import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimplePixelUnshuffleModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/pow_test.py b/torch_glow/tests/nodes/pow_test.py index 5fe056d8d..838823150 100644 --- a/torch_glow/tests/nodes/pow_test.py +++ b/torch_glow/tests/nodes/pow_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimplePowModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/prelu_test.py b/torch_glow/tests/nodes/prelu_test.py index 36cfbef4b..5bfc2f868 100644 --- a/torch_glow/tests/nodes/prelu_test.py +++ b/torch_glow/tests/nodes/prelu_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimplePreluModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_add_relu_test.py b/torch_glow/tests/nodes/quantized_add_relu_test.py index 4a8c2b873..7d91a2bf1 100644 --- a/torch_glow/tests/nodes/quantized_add_relu_test.py +++ b/torch_glow/tests/nodes/quantized_add_relu_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedAddReluModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_add_test.py b/torch_glow/tests/nodes/quantized_add_test.py index 83842a8d1..d0aa6de4b 100644 --- a/torch_glow/tests/nodes/quantized_add_test.py +++ b/torch_glow/tests/nodes/quantized_add_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedAddModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_avgpool2d_test.py b/torch_glow/tests/nodes/quantized_avgpool2d_test.py index 9db123fe8..1e0887336 100644 --- a/torch_glow/tests/nodes/quantized_avgpool2d_test.py +++ b/torch_glow/tests/nodes/quantized_avgpool2d_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedAvgPool2DModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_avgpool3d_test.py b/torch_glow/tests/nodes/quantized_avgpool3d_test.py index ec9838920..0ab475a84 100644 --- a/torch_glow/tests/nodes/quantized_avgpool3d_test.py +++ b/torch_glow/tests/nodes/quantized_avgpool3d_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedAvgPool3DModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_batchnorm2d_test.py b/torch_glow/tests/nodes/quantized_batchnorm2d_test.py index 70861b234..7b1fc96e5 100644 --- a/torch_glow/tests/nodes/quantized_batchnorm2d_test.py +++ b/torch_glow/tests/nodes/quantized_batchnorm2d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from torch.ao.quantization import observer, QConfig diff --git a/torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py b/torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py index 83efb72c7..b63ea6bbc 100644 --- a/torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py +++ b/torch_glow/tests/nodes/quantized_batchnorm3d_relu_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from torch.ao.quantization import ( convert, DeQuantStub, diff --git a/torch_glow/tests/nodes/quantized_batchnorm3d_test.py b/torch_glow/tests/nodes/quantized_batchnorm3d_test.py index 434ff1186..a02c885ec 100644 --- a/torch_glow/tests/nodes/quantized_batchnorm3d_test.py +++ b/torch_glow/tests/nodes/quantized_batchnorm3d_test.py @@ -18,7 +18,7 @@ import torch import torch.nn as nn -from tests import utils +from glow.glow.torch_glow.tests.tests import utils from torch.ao.quantization import observer, QConfig diff --git a/torch_glow/tests/nodes/quantized_cat_test.py b/torch_glow/tests/nodes/quantized_cat_test.py index ea0343718..9351e4ccd 100644 --- a/torch_glow/tests/nodes/quantized_cat_test.py +++ b/torch_glow/tests/nodes/quantized_cat_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedCatModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_conv2d_relu_test.py b/torch_glow/tests/nodes/quantized_conv2d_relu_test.py index ecbe5823a..2e018160d 100644 --- a/torch_glow/tests/nodes/quantized_conv2d_relu_test.py +++ b/torch_glow/tests/nodes/quantized_conv2d_relu_test.py @@ -19,7 +19,7 @@ from collections import OrderedDict import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestQuantizedConv2dRelu(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/quantized_conv2d_test.py b/torch_glow/tests/nodes/quantized_conv2d_test.py index 5ad29e201..525d53773 100644 --- a/torch_glow/tests/nodes/quantized_conv2d_test.py +++ b/torch_glow/tests/nodes/quantized_conv2d_test.py @@ -19,7 +19,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestQuantizedConv2d(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/quantized_conv3d_relu_test.py b/torch_glow/tests/nodes/quantized_conv3d_relu_test.py index 1c627d220..7ef677000 100644 --- a/torch_glow/tests/nodes/quantized_conv3d_relu_test.py +++ b/torch_glow/tests/nodes/quantized_conv3d_relu_test.py @@ -19,7 +19,7 @@ from collections import OrderedDict import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestQuantizedConv3dRelu(utils.TorchGlowTestCase): diff --git a/torch_glow/tests/nodes/quantized_conv3d_test.py b/torch_glow/tests/nodes/quantized_conv3d_test.py index 5ec2bc579..fa7c2a626 100644 --- a/torch_glow/tests/nodes/quantized_conv3d_test.py +++ b/torch_glow/tests/nodes/quantized_conv3d_test.py @@ -20,7 +20,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils logger = logging.getLogger("quantized conv3d test") diff --git a/torch_glow/tests/nodes/quantized_layernorm_test.py b/torch_glow/tests/nodes/quantized_layernorm_test.py index 1fcd8c16a..3aff1a918 100644 --- a/torch_glow/tests/nodes/quantized_layernorm_test.py +++ b/torch_glow/tests/nodes/quantized_layernorm_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class QuantizedLayerNormModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_leaky_relu_test.py b/torch_glow/tests/nodes/quantized_leaky_relu_test.py index 4f9442676..3222c0e51 100644 --- a/torch_glow/tests/nodes/quantized_leaky_relu_test.py +++ b/torch_glow/tests/nodes/quantized_leaky_relu_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedLeakyReluModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_linear_test.py b/torch_glow/tests/nodes/quantized_linear_test.py index 934570b5c..7063faf3c 100644 --- a/torch_glow/tests/nodes/quantized_linear_test.py +++ b/torch_glow/tests/nodes/quantized_linear_test.py @@ -15,7 +15,7 @@ # pyre-ignore-all-errors import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedLinearModel(torch.nn.Sequential): diff --git a/torch_glow/tests/nodes/quantized_maxpool_test.py b/torch_glow/tests/nodes/quantized_maxpool_test.py index acad802de..d80edd59f 100644 --- a/torch_glow/tests/nodes/quantized_maxpool_test.py +++ b/torch_glow/tests/nodes/quantized_maxpool_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedMaxPoolModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_mul_test.py b/torch_glow/tests/nodes/quantized_mul_test.py index b9d15281a..48f98780a 100644 --- a/torch_glow/tests/nodes/quantized_mul_test.py +++ b/torch_glow/tests/nodes/quantized_mul_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedMulModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/quantized_relu_test.py b/torch_glow/tests/nodes/quantized_relu_test.py index 13f5aa5a3..3d38b9476 100644 --- a/torch_glow/tests/nodes/quantized_relu_test.py +++ b/torch_glow/tests/nodes/quantized_relu_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleQuantizedReluModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/reciprocal_test.py b/torch_glow/tests/nodes/reciprocal_test.py index e6a541e64..8ed17e181 100644 --- a/torch_glow/tests/nodes/reciprocal_test.py +++ b/torch_glow/tests/nodes/reciprocal_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleReciprocalModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/relu_test.py b/torch_glow/tests/nodes/relu_test.py index 2fa74f0c6..76dfc5c5d 100644 --- a/torch_glow/tests/nodes/relu_test.py +++ b/torch_glow/tests/nodes/relu_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleReluModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/repeat_test.py b/torch_glow/tests/nodes/repeat_test.py index 4a4f727e7..850ba9824 100644 --- a/torch_glow/tests/nodes/repeat_test.py +++ b/torch_glow/tests/nodes/repeat_test.py @@ -19,7 +19,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class RepeatModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/reshape_test.py b/torch_glow/tests/nodes/reshape_test.py index a5d72d241..d0913e375 100644 --- a/torch_glow/tests/nodes/reshape_test.py +++ b/torch_glow/tests/nodes/reshape_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleReshapeModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/roi_align_rotated_test.py b/torch_glow/tests/nodes/roi_align_rotated_test.py index c86358a5e..110a1573a 100644 --- a/torch_glow/tests/nodes/roi_align_rotated_test.py +++ b/torch_glow/tests/nodes/roi_align_rotated_test.py @@ -19,7 +19,7 @@ import unittest import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils def rand_rotated_rois(N, H, W, count, horizontal=False): diff --git a/torch_glow/tests/nodes/roi_align_test.py b/torch_glow/tests/nodes/roi_align_test.py index 3da0e2c82..79bc7525b 100644 --- a/torch_glow/tests/nodes/roi_align_test.py +++ b/torch_glow/tests/nodes/roi_align_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils def rand_rois(N, H, W, count): diff --git a/torch_glow/tests/nodes/rsub_test.py b/torch_glow/tests/nodes/rsub_test.py index c6b855ea2..6eaa5708d 100644 --- a/torch_glow/tests/nodes/rsub_test.py +++ b/torch_glow/tests/nodes/rsub_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleRsubModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/select_test.py b/torch_glow/tests/nodes/select_test.py index a4c7af727..6fc9892ea 100644 --- a/torch_glow/tests/nodes/select_test.py +++ b/torch_glow/tests/nodes/select_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SelectModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/shape_as_tensor_test.py b/torch_glow/tests/nodes/shape_as_tensor_test.py index 6eb3b9119..a3d909e88 100644 --- a/torch_glow/tests/nodes/shape_as_tensor_test.py +++ b/torch_glow/tests/nodes/shape_as_tensor_test.py @@ -18,7 +18,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleShapeAsTensorModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/sigmoid_test.py b/torch_glow/tests/nodes/sigmoid_test.py index 2c4e2b1a1..7bca2ac95 100644 --- a/torch_glow/tests/nodes/sigmoid_test.py +++ b/torch_glow/tests/nodes/sigmoid_test.py @@ -18,7 +18,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSigmoidModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/size_test.py b/torch_glow/tests/nodes/size_test.py index 8f1c193db..96f067851 100644 --- a/torch_glow/tests/nodes/size_test.py +++ b/torch_glow/tests/nodes/size_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSizeModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/slice_test.py b/torch_glow/tests/nodes/slice_test.py index 1c4977e8f..4382f2a53 100644 --- a/torch_glow/tests/nodes/slice_test.py +++ b/torch_glow/tests/nodes/slice_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSliceModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/softmax_test.py b/torch_glow/tests/nodes/softmax_test.py index ea1e5db96..acc2f8e5d 100644 --- a/torch_glow/tests/nodes/softmax_test.py +++ b/torch_glow/tests/nodes/softmax_test.py @@ -18,7 +18,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSoftmaxModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/softplus_test.py b/torch_glow/tests/nodes/softplus_test.py index 1c6dabf13..ccb6f8e5b 100644 --- a/torch_glow/tests/nodes/softplus_test.py +++ b/torch_glow/tests/nodes/softplus_test.py @@ -3,7 +3,7 @@ import torch import torch.nn.functional as F -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSoftPlusModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/split_test.py b/torch_glow/tests/nodes/split_test.py index 677e99dfe..cab346ee4 100644 --- a/torch_glow/tests/nodes/split_test.py +++ b/torch_glow/tests/nodes/split_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSplitModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/sqrt_test.py b/torch_glow/tests/nodes/sqrt_test.py index 6c5d35311..8286fe529 100644 --- a/torch_glow/tests/nodes/sqrt_test.py +++ b/torch_glow/tests/nodes/sqrt_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSqrtModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/squeeze_test.py b/torch_glow/tests/nodes/squeeze_test.py index ed5bd3f7d..2e84836fd 100644 --- a/torch_glow/tests/nodes/squeeze_test.py +++ b/torch_glow/tests/nodes/squeeze_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSqueezeModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/stack_test.py b/torch_glow/tests/nodes/stack_test.py index 6de403876..697d16b24 100644 --- a/torch_glow/tests/nodes/stack_test.py +++ b/torch_glow/tests/nodes/stack_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleStackModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/sub_test.py b/torch_glow/tests/nodes/sub_test.py index a8ccbd1a9..5405d45b1 100644 --- a/torch_glow/tests/nodes/sub_test.py +++ b/torch_glow/tests/nodes/sub_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSubtractModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/sum_test.py b/torch_glow/tests/nodes/sum_test.py index c4d2bbb9b..3ea5ad09a 100644 --- a/torch_glow/tests/nodes/sum_test.py +++ b/torch_glow/tests/nodes/sum_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleSumModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/tanh_test.py b/torch_glow/tests/nodes/tanh_test.py index c71d2108e..ee8df25f5 100644 --- a/torch_glow/tests/nodes/tanh_test.py +++ b/torch_glow/tests/nodes/tanh_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleTanhModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/to_test.py b/torch_glow/tests/nodes/to_test.py index 61a933390..96cfca762 100644 --- a/torch_glow/tests/nodes/to_test.py +++ b/torch_glow/tests/nodes/to_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleToModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/topk_test.py b/torch_glow/tests/nodes/topk_test.py index ca42d1a84..045bd4bcb 100644 --- a/torch_glow/tests/nodes/topk_test.py +++ b/torch_glow/tests/nodes/topk_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleTopkModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/transpose_test.py b/torch_glow/tests/nodes/transpose_test.py index 486b5e0af..bc6abdad8 100644 --- a/torch_glow/tests/nodes/transpose_test.py +++ b/torch_glow/tests/nodes/transpose_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleTransposeModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/trig_ops_test.py b/torch_glow/tests/nodes/trig_ops_test.py index 7bd655a87..c16169e70 100644 --- a/torch_glow/tests/nodes/trig_ops_test.py +++ b/torch_glow/tests/nodes/trig_ops_test.py @@ -18,7 +18,7 @@ import numpy as np import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleCosModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/typeas_test.py b/torch_glow/tests/nodes/typeas_test.py index f996423db..03b72feaa 100644 --- a/torch_glow/tests/nodes/typeas_test.py +++ b/torch_glow/tests/nodes/typeas_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleTypeasModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/unsqueeze_test.py b/torch_glow/tests/nodes/unsqueeze_test.py index 036665d7d..6c98b1ff9 100644 --- a/torch_glow/tests/nodes/unsqueeze_test.py +++ b/torch_glow/tests/nodes/unsqueeze_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleUnsqueezeModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/upsample_test.py b/torch_glow/tests/nodes/upsample_test.py index 9a17800ce..f4cf47f17 100644 --- a/torch_glow/tests/nodes/upsample_test.py +++ b/torch_glow/tests/nodes/upsample_test.py @@ -18,7 +18,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleUpsampleModel(torch.nn.Module): diff --git a/torch_glow/tests/nodes/view_test.py b/torch_glow/tests/nodes/view_test.py index 3346ba796..6b7a555ef 100644 --- a/torch_glow/tests/nodes/view_test.py +++ b/torch_glow/tests/nodes/view_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class SimpleViewModule(torch.nn.Module): diff --git a/torch_glow/tests/nodes/zero_test.py b/torch_glow/tests/nodes/zero_test.py index f1b78880d..1f0f6b859 100644 --- a/torch_glow/tests/nodes/zero_test.py +++ b/torch_glow/tests/nodes/zero_test.py @@ -17,7 +17,7 @@ from __future__ import absolute_import, division, print_function, unicode_literals import torch -from tests import utils +from glow.glow.torch_glow.tests.tests import utils class TestZero(utils.TorchGlowTestCase):