提交 77eff437 编写于 作者: J JiabinYang

fix print() function to fit python3

上级 d17f2d2a
......@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
import paddle.v2 as paddle
import paddle.fluid as fluid
import numpy
......@@ -104,7 +104,7 @@ def train(use_cuda, train_program, params_dirname):
avg_cost = outs[0]
if event.step % 10 == 0:
print "Step %d: Average Cost %f" % (event.step, avg_cost)
print("Step %d: Average Cost %f" % (event.step, avg_cost))
# If average cost is lower than 5.8, we consider the model good enough to stop.
# Note 5.8 is a relatively high value. In order to get a better model, one should
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册