Skip to content

Selecting Data for Batches #11

@golnooshAbd

Description

@golnooshAbd

input_batch = input_tensor[:, b: b + batch_size, :]

target_batch = target_tensor[:, b: b + batch_size, :]

Basically these lines are wrong and should be changed like below to iterate on all samples, although, it still doesn't consider the last samples which are not fit into (less than) one batch.

input_batch = input_tensor[:, b * batch_size: (b + 1) * batch_size, :]
target_batch = target_tensor[:, b * batch_size: (b + 1) * batch_size, :]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions