Skip to content

Commit 7875897

Browse files
Update keras_hub/src/models/causal_lm.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8eda2ab commit 7875897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras_hub/src/models/causal_lm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def wrapped_generate_function(inputs, stop_token_ids=None):
178178
return ov_infer(inputs, stop_token_ids, self.generate_step)
179179

180180
self.generate_function = wrapped_generate_function
181-
if keras.config.backend() == "torch":
181+
elif keras.config.backend() == "torch":
182182
import torch
183183

184184
def wrapped_generate_function(

0 commit comments

Comments
 (0)