Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
user api to trigger partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mseth10 committed Aug 14, 2019
1 parent 843c3ab commit b6b5147
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/mxnet/symbol/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,12 @@ def _gen_atomic_symbol(self):
return Symbol(handle)


def optimizeFor(self, backend):
"""Partition symbol and optimize it for a given backend"""
out = SymbolHandle()
check_call(_LIB.MXOptimizeForBackend(self.handle, c_str(backend), ctypes.byref(out)))


# pylint: disable=too-many-locals
def simple_bind(self, ctx, grad_req='write', type_dict=None, stype_dict=None,
group2ctx=None, shared_arg_names=None, shared_exec=None,
Expand Down

0 comments on commit b6b5147

Please sign in to comment.