提交 1095c255 编写于 作者: D DesmonDay

update requirements

上级 8ddebad6
...@@ -11,15 +11,19 @@ ...@@ -11,15 +11,19 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
""" log writer setup """ Log writer setup: interface for training visualization.
""" """
import sys import six
LogWriter = None LogWriter = None
if int(sys.version[0]) == 3: if six.PY3:
# We highly recommend using VisualDL (https://github.com/PaddlePaddle/VisualDL)
# for training visualization in Python 3.
from visualdl import LogWriter from visualdl import LogWriter
LogWriter = LogWriter LogWriter = LogWriter
else: elif six.PY2:
from tensorboardX import SummaryWriter from tensorboardX import SummaryWriter
LogWriter = SummaryWriter LogWriter = SummaryWriter
else:
raise ValueError("Not running on Python2 or Python3 ?")
...@@ -4,3 +4,5 @@ cython >= 0.25.2 ...@@ -4,3 +4,5 @@ cython >= 0.25.2
#paddlepaddle #paddlepaddle
redis-py-cluster redis-py-cluster
visualdl >= 2.0.0b ; python_version >= "3"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册