Skip to content

Chapter 5 code errors in cnn sample #19

Description

@JohnFarl

I have already fixed some errors by myself however the way how parameters are passed in this method seems wrong and I get the error got an unexpected keyword argument

layer_one = tf.contrib.layers.convolution2d(
float_image_batch,
num_output_channels=32,
kernel_size=(5,5),
activation_fn=tf.nn.relu,
weight_init=tf.random_normal,
stride=(2, 2),
trainable=True)

More details on my Stackoverflow question
http://stackoverflow.com/questions/41539658/tensorflow-error-when-i-try-to-use-tf-contrib-layers-convolution2d/41540092#41540092

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions