3a5cea5d75447d9beea3a2b71e67aaaad9698f0c,kfac/examples/autoencoder_mnist.py,,get_keras_autoencoder,#,263

Before Change



  // Create Encoder
  model.add(layers.Input(**input_kwargs))
  for size in _ENCODER_SIZES[:-1]:
    model.add(layers.Dense(
        size, activation=_NONLINEARITY, **dense_kwargs))
  model.add(layers.Dense(_ENCODER_SIZES[-1], **dense_kwargs))

  // Create Decoder
  for size in _DECODER_SIZES:

After Change


    // Make sure you always wrap the input in keras
    inputs = layers.Input(**input_kwargs)

    x = inputs
    // Create Encoder
    for size in _ENCODER_SIZES[:-1]:
      x = layers.Dense(size, activation=_NONLINEARITY, **dense_kwargs)(x)
    x = layers.Dense(_ENCODER_SIZES[-1], **dense_kwargs)(x)

    // Create Decoder
    for size in _DECODER_SIZES:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/kfac
Commit Name: 3a5cea5d75447d9beea3a2b71e67aaaad9698f0c
Time: 2020-01-14
Author: no-reply@google.com
File Name: kfac/examples/autoencoder_mnist.py
Class Name:
Method Name: get_keras_autoencoder


Project Name: mortendahl/tf-encrypted
Commit Name: f54c2b1361fb86f55a36064158c6baa658ffffb9
Time: 2019-06-26
Author: suriyaku@gmail.com
File Name: examples/mnist/run.py
Class Name:
Method Name:


Project Name: osmr/imgclsmob
Commit Name: 00c06ff2b04c3c991b6fbe1281ff3eede9ca4f94
Time: 2018-10-29
Author: osemery@gmail.com
File Name: gluon/gluoncv2/models/squeezenet.py
Class Name: SqueezeNet
Method Name: __init__


Project Name: osmr/imgclsmob
Commit Name: 14303300e332c3be5d669789f3aa736befa22575
Time: 2020-10-19
Author: osemery@gmail.com
File Name: gluon/gluoncv2/models/resnesta.py
Class Name: ResNeStA
Method Name: __init__