yanghoonkim / attnconvnet

Implementation of <AttnConvnet at SemEval-2018 Task 1 : Attention-based Convolutional Neural Networks for Multi-label Emotion Classification> by Yanghoon Kim et al., SemEval 2018
https://www.aclweb.org/anthology/S18-1019
MIT License
6 stars 3 forks source link

problem about tensor2tensor #1

Closed JinHeap closed 6 years ago

JinHeap commented 6 years ago

I try to run your project with python 2.7. Because conda cann't install tensor2tensor ,i used pip to install it. when tensorflow=1.4.1,Error is ImportError: cannot import name control_flow_util. when i update tensorflow to 1.10,Error is ImportError: cannot import name common_layers. I think there some problem about tensor2tensor and tensoflow version. Thanks.

yanghoonkim commented 6 years ago

Hi,

I forgot specifying the version of tensor2tensor. You can solve the error with the tensor2tensor version of 1.0.8 which is a quite old version.

JinHeap commented 6 years ago

It's work.Thanks

JinHeap commented 6 years ago

the common_layers.py is the same to the file in tensor2tenor or there were some place you change in your project. I think is the same lib. I can use tensor2tensor to replaced the file model.py import common_xx by


# import common_attention as ca
# import common_layers as cl
from tensor2tensor.layers import common_attention as ca
from tensor2tensor.layers import common_layers as cl