You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using tensorflow eager import tensorflow.contrib.eager as tfe, but pylint raise E0611:No name 'eager' in module 'LazyLoader'.
Then I googling for solution and get one i.e. contextmanager-decorators=contextlib.contextmanager, tf_contextlib.contextmanager
weird thing come out, I have to insert "----contextmanager-decorators=contextlib.contextmanager, tf_contextlib.contextmanager, tensorflow.python.util" heading with 4 dash in "python.linting.pylintArgs"
eager_test.py
importtensorflow.contrib.eagerastfeimporttensorflowastfimportnumpyasnptf.enable_eager_execution()
defsquare_f(W):
# Return a tensor with elements squaredreturntf.square(W)
f_grad=tfe.gradients_function(square_f, params=['W'])
print(f_grad(tf.constant(0.3)))
setting.json
// Whether to lint Python files.
"python.linting.enabled": true,
"python.linting.pylintArgs":
[
// https://github.com/PyCQA/pylint/issues/1542#issuecomment-321901891
// Dont work heading with 2 dash
// "--contextmanager-decorators=contextlib.contextmanager, tf_contextlib.contextmanager, tensorflow.python.util",
// workaround, weird `----`
"----contextmanager-decorators=contextlib.contextmanager, tf_contextlib.contextmanager, tensorflow.python.util",
// # List of members which are set dynamically and missed by pylint inference
// # system, and so shouldn't trigger E1101 when accessed. Python regular
// # expressions are accepted.
"--generated-members=matplotlib.*, torch.*, pygame.*, tensorflow.*",
// C0103:Constant name "rnd_clf" doesn't conform to UPPER_CASE naming style
// C0111:Missing module docstring
// R0913:Too many arguments (max=5)
"--disable=C0103, C0111, R0913",
],
I'm using tensorflow eager
import tensorflow.contrib.eager as tfe
, but pylint raiseE0611:No name 'eager' in module 'LazyLoader'
.Then I googling for solution and get one i.e.
contextmanager-decorators=contextlib.contextmanager, tf_contextlib.contextmanager
weird thing come out, I have to insert
"----contextmanager-decorators=contextlib.contextmanager, tf_contextlib.contextmanager, tensorflow.python.util"
heading with 4 dash in"python.linting.pylintArgs"
eager_test.py
setting.json
tensorflow-gpu == 1.10.0
pylint == 2.0.1
python == 3.5.5
The text was updated successfully, but these errors were encountered: