Skip to content

Commit

Permalink
fix: Fix crash when no target_col is specified for Bigframes tensorflow
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 602543376
  • Loading branch information
matthew29tang authored and Copybara-Service committed Jan 30, 2024
1 parent b9b373b commit 512b82d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1284,7 +1284,7 @@ def _deserialize_tensorflow(
"""
# Set default kwarg values
batch_size = batch_size or DEFAULT_TENSORFLOW_BATCHSIZE
target_col = target_col.encode("ASCII") or b"target"
target_col = target_col.encode("ASCII") if target_col else b"target"

# Deserialization at remote environment
try:
Expand Down

0 comments on commit 512b82d

Please sign in to comment.