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

[INTEL MKL] Fix failing v1 CI test #47992

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 15 additions & 3 deletions tensorflow/python/debug/cli/analyzer_cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,23 @@


# Helper function to accommodate MKL-enabled TensorFlow:
# MatMul op is supported by MKL and its name is prefixed with "_Mkl" during the
# MKL graph rewrite pass.
# MatMul op is supported by MKL for some data types and its name is prefixed
# with "_Mkl" during the MKL graph rewrite pass.
def _matmul_op_name():
return "_MklMatMul" if test_util.IsMklEnabled() else "MatMul"
if (test_util.IsMklEnabled() and
_get_graph_matmul_dtype() in _mkl_matmul_supported_types()):
return "_MklMatMul"
else:
return "MatMul"

# Helper function to get MklMatMul supported types
def _mkl_matmul_supported_types():
return {"float32", "bfloat16"}

# Helper function to get dtype used in the graph of SetUpClass()
def _get_graph_matmul_dtype():
# default dtype of matmul op created is float64
return "float64"

def _cli_config_from_temp_file():
return cli_config.CLIConfig(
Expand Down