Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update log #105

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
9 changes: 7 additions & 2 deletions padiff/checker/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ..utils import assert_tensor_equal
from ..utils import assert_tensor_equal, log
from .checker_utils import load_numpy

import warnings
Expand Down Expand Up @@ -75,4 +75,9 @@ def __call__(self, file_list_0, file_list_1, cfg):
raise RuntimeError("size of tensors is not equal")
warnings.warn("Found nparray.size == 0, compare skipped!")
continue
assert_tensor_equal(tensor_0, tensor_1, cfg)
try:
assert_tensor_equal(tensor_0, tensor_1, cfg)
except Exception as e:
raise RuntimeError(
"Compare Tensor: " + info_0["path"] + ", " + info_1["path"] + "\n"
+ str(e))
2 changes: 2 additions & 0 deletions padiff/checker/check_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def check_forward(nodes, reports, cfg):
print_report_info(nodes, reports, e, "Forward")
return False

log("Parent Node Forward Check Failed, Analysing Children Nodes !!!")
# reorder current level
try:
if not nodes[1]["reordered"]:
Expand Down Expand Up @@ -116,6 +117,7 @@ def check_backward(nodes, reports, cfg):
print_report_info(nodes, reports, e, "Backward")
return False

log("Parent Node Backward Check Failed, Analysing Children Nodes !!!")
# reorder current level
try:
if not nodes[1]["reordered"]:
Expand Down
Loading