Guest User

Untitled

a guest
Apr 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. train_input_fn = tf.estimator.inputs.numpy_input_fn(
  2. x={"x": training_images},
  3. y={"labels1": training_labels1, "labels2": training_labels2},
  4. batch_size=BATCH_SIZE,
  5. num_epochs=None,
  6. shuffle=True)
  7.  
  8. my_cnn_model.train(input_fn=train_input_fn,steps=NUM_TRAINING_STEPS)
  9.  
  10. def build_cnn_model(features, labels, mode):
  11.  
  12. AttributeError: 'dict' object has no attribute 'shape'
  13.  
  14. def build_cnn_model(features, targets, mode):
  15.  
  16. ValueError: model_fn (<function build_cnn_model at 0x7f88df9c9d08>) has following not expected args: ['targets']
Add Comment
Please, Sign In to add comment