Skip to content

Commit

Permalink
Merge pull request #553 from SunAhong1993/real_dev
Browse files Browse the repository at this point in the history
for new version
  • Loading branch information
SunAhong1993 authored Apr 25, 2021
2 parents 72e2f6d + 5b95ab5 commit e7efea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x2paddle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.1"
__version__ = "1.0.2"

from .core.program import PaddleGraph

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def data(self, graph, node, uid, input_ct):
scope_name=scope_name,
data=output_name)
if self.input_examples is not None:
input_np = self.input_examples[input_ct].detach().numpy()
input_np = self.input_examples[input_ct].cpu().detach().numpy()
self.inputs_info[
output_name] = [list(input_np.shape), str(input_np.dtype)]
return [], [output_name]
Expand Down

0 comments on commit e7efea7

Please sign in to comment.