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

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
samskalicky committed Oct 30, 2020
1 parent 3b8b0c2 commit 16038a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/mxnet/gluon/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,10 @@ def _build_cache(self, *args):
# Partition the graph.
out = out.optimize_for(self._backend, arg_dict, aux_dict, ctx, **self._backend_opts)

# convert to numpy symbol if needed
if _mx_npx.is_np_array():
out = out.as_np_ndarray()

#update cached graph with partitioned graph
self._cached_graph = data, out

Expand Down

0 comments on commit 16038a1

Please sign in to comment.