...
tensor2tensor 1.14.1
tensorboard 2.0.0
tensorflow 2.0.0
tensorflow-datasets 1.2.0
tensorflow-estimator 2.0.0
tensorflow-gan 1.0.0.dev0
tensorflow-gpu 2.0.0
tensorflow-metadata 0.15.0
tensorflow-probability 0.7.0
...
Traceback (most recent call last):
File "Run_Self_Defined_Problem.py", line 14, in <module>
from bert_multitask_learning import (get_or_make_label_encoder, FullTokenizer,
File "/lustre03/project/6007993/rrs99/code/bert-multitask-learning/bert_multitask_learning/__init__.py", line 4, in <module>
from .model_fn import *
File "/lustre03/project/6007993/rrs99/code/bert-multitask-learning/bert_multitask_learning/model_fn.py", line 10, in <module>
from .top import (
File "/lustre03/project/6007993/rrs99/code/bert-multitask-learning/bert_multitask_learning/top.py", line 9, in <module>
from .top_utils import (TopLayer, gather_indexes,
File "/lustre03/project/6007993/rrs99/code/bert-multitask-learning/bert_multitask_learning/top_utils.py", line 7, in <module>
from tensor2tensor.utils import metrics as t2t_metrics
File "/lustre03/project/6007993/rrs99/venvs/bert_multi/lib/python3.6/site-packages/tensor2tensor/utils/metrics.py", line 25, in <module>
from tensor2tensor.layers import modalities
File "/lustre03/project/6007993/rrs99/venvs/bert_multi/lib/python3.6/site-packages/tensor2tensor/layers/modalities.py", line 28, in <module>
from tensor2tensor.layers import common_attention
File "/lustre03/project/6007993/rrs99/venvs/bert_multi/lib/python3.6/site-packages/tensor2tensor/layers/common_attention.py", line 954, in <module>
def attention_bias_to_padding(attention_bias, cast_fn=tf.to_float):
AttributeError: module 'tensorflow' has no attribute 'to_float'
>>> import tensorflow as tf
>>> tf.to_float
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow' has no attribute 'to_float'
@deprecation.deprecated(date=None, instructions="Use `tf.cast` instead.")
@tf_export(v1=["to_float"])
def to_float(x, name="ToFloat"):
......
--
You received this message because you are subscribed to the Google Groups "tensor2tensor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tensor2tenso...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tensor2tensor/284115cc-665a-4c37-8da6-c27a82f18d2b%40googlegroups.com.
• • • • | Paige Bailey Product Manager (TensorFlow) @DynamicWebPaige |
To view this discussion on the web visit https://groups.google.com/d/msgid/tensor2tensor/CACMT%2BuKk0NaP1AWLRKgPWdZMXNMcWJ0UgGBmPydn_Y3LPcCefA%40mail.gmail.com.
[[source]]name = "pypi"url = "https://pypi.org/simple"verify_ssl = true
[dev-packages]
[packages]tensorflow = "==1.15.*"tensorflow-probability = "*"scipy = "*"requests = "*"mesh-tensorflow = "*"gym = "*"pillow = "*"tensorflow-gan = "*"sympy = "*"pypng = "*"google-api-python-client = "*"oauth2client = "*"jupyter = "*"matplotlib = "*"
[requires]python_version = "3.6"
[pipenv]allow_prereleases = true