2017-05-07 2 views
0

레이어 모듈을 사용하는 github에 주어진 예제 cnn_mnist를 실행 중입니다. 프로그램을 실행할 수는 있지만 함수 중 하나가 사용되지 않는다는 경고가 나타납니다. 어떤 새로운 기능을 사용해야하는지 알 수 없습니다.Tensorflow - tf.Layers : 함수에 오류가 있습니다.

WARNING:tensorflow:From <ipython-input-14-ee49e8b76469>:25: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with batch_size is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -> est = SKCompat(Estimator(...))

답변

1

은 다음과 같이 해당 스크립트를 수정하기에 충분해야한다 : 그것은 다른 사람을 오해하지 않도록

# Create the Estimator 
mnist_classifier = learn.SKCompat(learn.Estimator(
    model_fn=cnn_model_fn, model_dir="/tmp/mnist_convnet_model")) 

그러나, 그 샘플을 업데이트 할 Github에서 문제를여십시오.

관련 문제