d14ad44d0f425c04be5a6cdca13fc513fba53843,test_models_train.py,,,#,11
Before Change
loss=deep_speaker_loss,
metrics=["accuracy"])
inputs = list(np.expand_dims(network_inputs, axis=1))
model.fit(inputs, np.expand_dims([0] * len(inputs), axis=1))
print(model.summary())
After Change
output = model.predict(network_inputs)
// stub_targets = np.expand_dims([0] * BATCH_SIZE * NUM_FRAMES, axis=1)
stub_targets = np.random.uniform(size=(BATCH_SIZE * NUM_FRAMES, 512))
print(model.train_on_batch(network_inputs, stub_targets))
// from triplet_loss import deep_speaker_loss
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: philipperemy/deep-speaker
Commit Name: d14ad44d0f425c04be5a6cdca13fc513fba53843
Time: 2017-06-12
Author: premy@reactive.co.jp
File Name: test_models_train.py
Class Name:
Method Name:
Project Name: philipperemy/deep-speaker
Commit Name: 4d3023ed5db726f6d4bab30e2ff0620472c37966
Time: 2017-06-12
Author: premy@reactive.co.jp
File Name: models_train.py
Class Name:
Method Name:
Project Name: tensorlayer/tensorlayer
Commit Name: b3b2a1fac973d4d9630b8917421a5d15f9d539ad
Time: 2019-03-05
Author: dhsig552@163.com
File Name: tensorlayer/layers/convolution/simplified_deconv.py
Class Name: DeConv2d
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: b3b2a1fac973d4d9630b8917421a5d15f9d539ad
Time: 2019-03-05
Author: dhsig552@163.com
File Name: tensorlayer/layers/convolution/simplified_deconv.py
Class Name: DeConv3d
Method Name: build