Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[master][tests] __init__' file to avoid undefined variables #20701

Merged
merged 2 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tests/nightly/model_backwards_compatibility_check/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# coding: utf-8

from .common import *
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

from common import *
from .common import *

def test_lenet_gluon_load_params_api():
model_name = 'lenet_gluon_save_params_api'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

from common import *
from .common import *


def train_lenet_gluon_save_params_api():
Expand Down
2 changes: 1 addition & 1 deletion tests/python/unittest/test_numpy_default_dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def check_default_dtype(op_list):
assert False
assert workloads is not None, 'Workloads for operator `{}` has not been ' \
'added for checking default dtype with the ' \
'official NumPy and the deep NumPy.'.format(name)
'official NumPy and the deep NumPy.'.format(op_name)
for workload in workloads:
check_np_default_dtype(op, *workload['args'], **workload['kwargs'])
check_deepnp_default_dtype(op, *workload['args'], **workload['kwargs'])
Expand Down