Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to apply to tf.layers.con2d #3

Closed
taki0112 opened this issue Feb 19, 2018 · 1 comment
Closed

I want to apply to tf.layers.con2d #3

taki0112 opened this issue Feb 19, 2018 · 1 comment

Comments

@taki0112
Copy link

If I want to apply to tf.layers.con2d, what should I do?
I want to put it in the kernel initializer.

for example

    x = tf.layers.conv2d(inputs=x, filters=channels,
                                      kernel_size=kernel, 
                                      kernel_initializer=spectral_normed_weight(),
                                      strides=stride)

Should I just use tf.nn.conv2d... ?

@patrikohlsson
Copy link

@taki0112 You could use tf.trainable_variables and find the kernels, then create the spectral normalization ops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants