0f7616bdade868fc1dd8c90adb6f7789176305a6,research/audioset/vggish/vggish_train_demo.py,,main,#Any#,128
Before Change
// Add training ops.
with tf.variable_scope("train"):
global_step = tf.Variable(
0, name="global_step", trainable=False,
collections=[tf.GraphKeys.GLOBAL_VARIABLES,
tf.GraphKeys.GLOBAL_STEP])
// Labels are assumed to be fed as a batch multi-hot vectors, with
// a 1 in the position of each positive class label, and 0 elsewhere.
labels = tf.placeholder(
After Change
// Add a fully connected layer with 100 units. Add an activation function
// to the embeddings since they are pre-activation.
num_units = 100
fc = slim.fully_connected(tf.nn.relu(embeddings), num_units)
// Add a classifier layer at the end, consisting of parallel logistic
// classifiers, one per class. This allows for multi-class tasks.
logits = slim.fully_connected(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: tensorflow/models
Commit Name: 0f7616bdade868fc1dd8c90adb6f7789176305a6
Time: 2020-08-10
Author: 30733558+plakal@users.noreply.github.com
File Name: research/audioset/vggish/vggish_train_demo.py
Class Name:
Method Name: main
Project Name: arnomoonens/yarll
Commit Name: 7041289333eb7865e7c0494592c0c02afb53e7d2
Time: 2017-03-27
Author: x-006@hotmail.com
File Name: REINFORCE.py
Class Name: REINFORCELearnerDiscrete
Method Name: build_network_rnn
Project Name: arnomoonens/yarll
Commit Name: 0a1844fe38592ba9797e37c920d6a9f745f217c0
Time: 2017-03-30
Author: x-006@hotmail.com
File Name: async_knowledge_transfer.py
Class Name: AsyncKnowledgeTransferLearner
Method Name: build_networks