Skip to content

Commit

Permalink
Merge pull request #15 from 0x45f/build-strategy
Browse files Browse the repository at this point in the history
Support build_strategy for sot
  • Loading branch information
2742195759 authored Jun 27, 2023
2 parents 762547c + ca763f3 commit dfef6dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/paddle/jit/dy2static/program_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,10 @@ def __init__(self, function, input_spec=None, **kwargs):
def _perform_call(self, *args, **kwargs):
from sot import symbolic_translate

traced_fun = symbolic_translate(self._dygraph_function)
build_strategy = self._kwargs.get("build_strategy", None)
traced_fun = symbolic_translate(
self._dygraph_function, build_strategy=build_strategy
)
if self._class_instance is not None:
args = (self._class_instance,) + args
return traced_fun(*args, **kwargs)
Expand Down

0 comments on commit dfef6dc

Please sign in to comment.