Skip to content

Commit

Permalink
for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Channingss committed Apr 25, 2021
1 parent 72e2f6d commit 5b95ab5
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 5b95ab5

Please sign in to comment.