(name, tf_val, op_val, atol_threshold)
| 88 | return time_sum * 1000 / iterations |
| 89 | |
| 90 | def cross_check(name, tf_val, op_val, atol_threshold): |
| 91 | abs_diff = np.fabs(tf_val - op_val) |
| 92 | print("[INFO] {} Cross check {}".format(name, np.allclose(tf_val, op_val, atol=atol_threshold))) |
| 93 | print("[INFO] Max diff {}".format(abs_diff.max())) |
| 94 | print("[INFO] min diff {}".format(abs_diff.min())) |
| 95 | |
| 96 | def int_result_cross_check(name, tf_result, op_result, shape): |
| 97 | print(" ") |
no test coverage detected