"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "097b66eec7b1f034a972c14faa0465536f5261fb"
Commit 3a796b5a authored by guptapriya's avatar guptapriya
Browse files

Remove loss layer test

parent 67f81649
...@@ -77,16 +77,6 @@ class TransformerLayersTest(tf.test.TestCase): ...@@ -77,16 +77,6 @@ class TransformerLayersTest(tf.test.TestCase):
output_logits = metrics.MetricLayer(vocab_size)([logits, targets]) output_logits = metrics.MetricLayer(vocab_size)([logits, targets])
self.assertEqual(output_logits.shape.as_list(), [None, None, vocab_size,]) self.assertEqual(output_logits.shape.as_list(), [None, None, vocab_size,])
def test_loss_layer(self):
vocab_size, label_smoothing = 50, 0.1
logits = tf.keras.layers.Input((None, vocab_size),
dtype="float32",
name="logits")
targets = tf.keras.layers.Input((None,), dtype="int64", name="targets")
output_logits = metrics.LossLayer(vocab_size,
label_smoothing)([logits, targets])
self.assertEqual(output_logits.shape.as_list(), [None, None, vocab_size,])
if __name__ == "__main__": if __name__ == "__main__":
tf.test.main() tf.test.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment