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

get name from symbol cpp #12073

Closed
timprepscius opened this issue Aug 7, 2018 · 5 comments
Closed

get name from symbol cpp #12073

timprepscius opened this issue Aug 7, 2018 · 5 comments
Labels

Comments

@timprepscius
Copy link

This is most trivial, and of course a billion ways to work around, however:

Given a symbol:
auto a = Symbol::Variable("my_super_name") // could be any symbol

How do I retrieve the name of the symbol:
std::cout << a.GetName() << std::endl;

Somehow I cannot find the methods to allow this, nor any examples.

@haojin2
Copy link
Contributor

haojin2 commented Aug 8, 2018

There's indeed no such function in Symbol class in cpp-package, a fix in #12076.

@lanking520
Copy link
Member

@mxnet-label-bot could you please add [feature, c++]

@marcoabreu marcoabreu added C++ Related to C++ Feature labels Aug 8, 2018
@haojin2
Copy link
Contributor

haojin2 commented Aug 9, 2018

@timprepscius Fix is merged, can you try that out and let me know if you found and problems? Thanks!

@leleamol
Copy link
Contributor

@mxnet-lable-bot [pending-requestor-info]

@leleamol
Copy link
Contributor

leleamol commented Nov 6, 2018

The fix is merged and there is no update from the requester.
Can this issue be closed?

@mxnet-jenkins @marcoabreu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants