Skip to content

How does chainer operater other image in one batch? #5

@machanic

Description

@machanic

Because the chainer's Variable has omit Linker's first batch dimension.
According to https://docs.chainer.org/en/stable/tutorial/basic.html#forward-backward-computation
The document said

Most functions and links only accept mini-batch input, where the first dimension of the input array is considered as the batch dimension. In the above Linear link case, input must have shape of (N, 3), where N is the mini-batch size.

If I want to get/operate the other image in this batch, How to write the code?

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