You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Layers.Merging.Test.cs 560 B

12345678910111213141516171819
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Tensorflow.NumPy;
  3. using static Tensorflow.KerasApi;
  4. namespace Tensorflow.Keras.UnitTest.Layers
  5. {
  6. [TestClass]
  7. public class LayersMergingTest : EagerModeTestBase
  8. {
  9. [TestMethod]
  10. public void Concatenate()
  11. {
  12. var x = np.arange(20).reshape((2, 2, 5));
  13. var y = np.arange(20, 30).reshape((2, 1, 5));
  14. var z = keras.layers.Concatenate(axis: 1).Apply(new Tensors(x, y));
  15. Assert.AreEqual((2, 3, 5), z.shape);
  16. }
  17. }
  18. }