Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PythonUtil 引用栈内存地址 #1357

Closed
viennadd opened this issue Feb 17, 2017 · 1 comment
Closed

PythonUtil 引用栈内存地址 #1357

viennadd opened this issue Feb 17, 2017 · 1 comment
Assignees
Labels

Comments

@viennadd
Copy link

PythonUtil.cpp.in#L196 看到把局部变量的地址传递给静态变量,不知道注释里面的NOLINK是否指这个问题

  char pyHome[] = "@PYTHON_INSTALL_DIR@"; // NOLINT
  if (strlen(pyHome)) {
    Py_SetPythonHome(pyHome);
  }

加上static 是否可行: static char pyHome[] = "@PYTHON_INSTALL_DIR@"; // NOLINT

@viennadd
Copy link
Author

viennadd commented Jul 7, 2017

fixed: #1787

@viennadd viennadd closed this as completed Jul 7, 2017
zhhsplendid pushed a commit to zhhsplendid/Paddle that referenced this issue Sep 25, 2019
* fix api_cn of 11 APIs
test=develop
test=document_preview

* fix format of math and params

* fix tensor dimension description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants