lstm cntk sequence to sequence in c#

When my data looks like this:

      1      |x 3:1 |y 8:1
      1      |x 4:1 |y
      1      |x 5:1 |y
      1      |x 6:1 |y
      1      |x 7:1 |y

And my variables are declared like this:

      var features = Variable.InputVariable(new int[] { 10 }, DataType.Float, featuresName, null, true);
      var labels = Variable.InputVariable(new int[] { 10 }, DataType.Float, labelsName, new List<Axis>() { Axis.DefaultBatchAxis() }, true);

Then the code works, but when I want my network to produce sequence --> sequence so my data looks like this:

      1      |x 3:1 |y 4:1
      1      |x 4:1 |y 5:1
      1      |x 5:1 |y 6:1
      1      |x 6:1 |y 7:1
      1      |x 7:1 |y 8:1

I get this error:

      Unhandled Exception: System.ArgumentOutOfRangeException:
      The dimension size (5) of the axis (1) of the Value ('[10 x 5 x 20]')
      must be 1, because this axis is not specified as a dynamic axis of
      the Variable ('Input('labels', [10], [#])').

How do I tell CNTK that this is ok?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Member_2_4898346DirectorAuthor Commented:
The trick is to remove:

new List<Axis>() { Axis.DefaultBatchAxis() }

as the default is to allow a sequence, and this is specifically saying this variable is NOT a sequence, doh!:

  var labels = Variable.InputVariable(new int[] { 10 }, DataType.Float, labelsName, null, true);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Member_2_4898346DirectorAuthor Commented:
Thanks to KeDengMS for explaining this to me :-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.