Skip to content
Snippets Groups Projects
Commit 5e198621 authored by Neta Zmora's avatar Neta Zmora
Browse files

Fixed test execution in new environment

parent 7fbde765
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,11 @@
#
import torch
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
import distiller
def test_sparsity():
......
......@@ -14,11 +14,17 @@
# limitations under the License.
#
def test_load():
from models import create_model
from apputils import load_checkpoint
import logging
import logging
import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
from models import create_model
from apputils import load_checkpoint
def test_load():
logger = logging.getLogger('simple_example')
logger.setLevel(logging.INFO)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment