Skip to content

Commit

Permalink
Resolve the comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakusaRinne authored and Oceania2018 committed Mar 4, 2023
1 parent 875063a commit e5837dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public TensorLikeDataAdapter(DataAdapterArgs args)
{
this.args = args;
_process_tensorlike();
num_samples = (int)args.X[0].shape[0];
num_samples = (int)args.X.shape[0];
var batch_size = args.BatchSize == -1 ? 32 : args.BatchSize;
_batch_size = batch_size;
_size = Convert.ToInt32(Math.Ceiling(num_samples / (batch_size + 0.0f)));
Expand Down

0 comments on commit e5837dc

Please sign in to comment.