Deprecation warnings
colingoldberg opened this issue · comments
Hi,
Not sure what impact these messages have (so far) - I am reporting them FYI:
(On macosx 10.14.5, python 3.6.7, tensorflow 1.14.0)
nlp.add_pipe(BeneparComponent("benepar_en"))
WARNING: Logging before flag parsing goes to stderr.
W0718 09:41:51.815104 4736062912 deprecation_wrapper.py:119] From
/Users/.../anaconda3/lib/python3.6/site-packages/benepar/base_parser.py:199: The name
tf.GraphDef is deprecated. Please use tf.compat.v1.GraphDef instead.
W0718 09:41:53.919924 4736062912 deprecation_wrapper.py:119] From
/Users/.../anaconda3/lib/python3.6/site-packages/benepar/base_parser.py:202: The name
tf.Session is deprecated. Please use tf.compat.v1.Session instead.
Regards
Colin Goldberg
Probably these occur because this module was built with TF v1.11 in mind, but you installed a later version. I agree that a better compatibility should be found. Other warnings include numpy warnings:
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\bmvroy\.virtualenvs\sent_feats_svm_format-5L73t-Dh\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Thanks for pointing this out!
I'll keep this in mind, and I'll try dealing with this around the time the tf2.0 release candidate comes out. I still need to think about what I want to do in terms of model compatibility, and whether it makes sense to change how the models are packaged (e.g. switching to the SavedModel format).