# Nasty tensorflow.contrib

Created at 2018-12-04 Updated at 2018-12-04 Category TensorFlow Tag TensorFlow

Tensorflow is a great library for Machine Intelligence, and many people contribute this library by tensorflow.contrib which fosters its popularity and application. However today, I found this sub-package can be very nasty because its dependencies that can be in a mass and out of control, for example importing tf.contrib.layers.full_connected can report the following error:

I can’t figure out how did it happen, but I found there is a workaround to fix it, that is using tf.layers.dense which is the same with tf.contrib.layers.fully_connected. tf.layers is much stable than tf.contrib.layers.

Reference:

## Table of Content

Site by GoingMyWay using Hexo & Random

I am a ML and RL research student

Hide