"vscode:/vscode.git/clone" did not exist on "62757db6f0f09a6dff15b1ee1ac3029602951509"
Commit 308c7934 authored by Toby Boyd's avatar Toby Boyd Committed by guptapriya
Browse files

update v2 check and fix ncf v2 check error logic.

parent 6f47c378
......@@ -275,7 +275,7 @@ def run_ncf(_):
num_gpus=FLAGS.num_gpus)
params["distribute_strategy"] = strategy
if keras_utils.is_v2_0() and strategy is not None:
if not keras_utils.is_v2_0() and strategy is not None:
logging.error("NCF Keras only works with distribution strategy in TF 2.0")
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment