Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the multiple inputs of keras model.fit. #996

Merged
merged 5 commits into from Mar 4, 2023

Conversation

AsakusaRinne
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
@@ -20,7 +21,7 @@ public TensorLikeDataAdapter(DataAdapterArgs args)
{
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
TensorFlow Keras
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

How to train model that takes mutiple tensors as input
3 participants