Skip to content

Commit 9e4910e

Browse files
committed
Check if model input is dict before accessing
(cherry picked from commit 80e091e)
1 parent 1a6ab44 commit 9e4910e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/workloads/tf_api/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def start(args):
401401

402402
local_cache["required_inputs"] = tf_lib.get_base_input_columns(model["name"], ctx)
403403

404-
if model["input"].get("target_vocab") is not None:
404+
if util.is_dict(model["input"]) and model["input"].get("target_vocab") is not None:
405405
local_cache["target_vocab_populated"] = ctx.populate_values(
406406
model["input"]["target_vocab"], None, False
407407
)

0 commit comments

Comments
 (0)