Skip to content

Conversation

@SanftMonster
Copy link
Collaborator

Partially fix #939

It mainly did two things:

  1. Support the multiple inputs of keras model.fit.
  2. Update the anonymous_iterator_v2 to anonymous_iterator_v3.

It made the following break changes:

  1. Removed the implicit conversionfrom Array to NDArray. Instead, it added a series implicit conversion such as int[], float[,], double[,,] and so on.
  2. It makes IDatasetV2 implements IEnumerable<(Tensors, Tensors)> instead of IEnumerable<(Tensor, Tensor)>. (This may lead to some error of examples.)

@Oceania2018 Oceania2018 added the enhancement New feature or request label Mar 4, 2023
this.args = args;
_process_tensorlike();
num_samples = (int)args.X.shape[0];
num_samples = (int)args.X[0].shape[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use (int)args.X.shape[0] instead of (int)args.X[0].shape[0]?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I have changed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to train model that takes mutiple tensors as input

3 participants