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 562 B

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