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

Commit

Permalink
Make numpy functions return Symbol instead of numpy object array (#9293)
Browse files Browse the repository at this point in the history
* Make numpy functions return Symbol instead of numpy object array

* Trigger rebuild
  • Loading branch information
cjolivier01 authored and piiswrong committed Jan 4, 2018
1 parent 9d51e1a commit f79f0d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/mxnet/symbol/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class Symbol(SymbolBase):
# pylint: disable=no-member
__slots__ = []

# Make numpy functions return Symbol instead of numpy object array
__array_priority__ = 1000.0

def __repr__(self):
"""Gets a string representation of the symbol."""
name = self.name
Expand Down

0 comments on commit f79f0d4

Please sign in to comment.