"docs/vscode:/vscode.git/clone" did not exist on "8992589dd6fcfdfc5f1435a4a9a92da501dd5ab6"
Unverified Commit ef8d32c5 authored by Matt's avatar Matt Committed by GitHub
Browse files

Fix suggested by @bhadreshpsavani (#11660)

parent 575c9791
......@@ -522,7 +522,7 @@ def main():
# region Prediction losses
# This section is outside the scope() because it's very quick to compute, but behaves badly inside it
if "label" in datasets["test"].features:
if "test" in datasets and "label" in datasets["test"].features:
print("Computing prediction loss on test labels...")
labels = datasets["test"]["label"]
loss = float(loss_fn(labels, predictions).numpy())
......
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