Tensorflow.strided_slice missing argument 'strides'?

前端 未结 2 1077
闹比i
闹比i 2021-01-05 21:19

I am trying to run cifar10_train.py according to tutorials, but I got

\"cifar10_input.py\", line 87, in read_cifar10
tf.strided_slice(record_by         


        
相关标签:
2条回答
  • 2021-01-05 21:55

    @user3143469 already gave the desired answer.

    Going to TF 0.12, there are several things in the cifar10 tutorial which need to be updated (see pull request).

    See https://github.com/MartinThoma/algorithms/commit/38ce1f87d6e4396cde64fe831c2ead2507781270 for the changes which need to be made and this folder for working code + instructions how to use it.

    0 讨论(0)
  • 2021-01-05 22:12

    Replace a line

    tf.strided_slice(record_bytes, [0], [label_bytes]), tf.int32)
    

    to the line:

    tf.strided_slice(record_bytes, [0], [label_bytes], [1]), tf.int32)
    

    and a line in the next operator

    [label_bytes + image_bytes]),
    

    to the line

    [label_bytes + image_bytes], [1]),
    

    It works for me.

    0 讨论(0)
提交回复
热议问题