Skip to content

Default axis being 1 of batchNormalization operation is invalid for 1D input tensor #307

@BruceDai

Description

@BruceDai

The input of batchNormalization operation would be ND tensor, when it's 1D tensor, the axis as a long scalar would be 0 or -1, it couldn't be 1, right?

And current three operations use axis which are of the same long type, but explanations for axis value are not enough clear, and could axis of concat be negative value?

Op Axis Type Value description
batchNormalization axis is an option of the optional options parameter long When it’s not specified, the default value is 1.When input is a 4-D tensor of the "nchw" or "nhwc" layout, options.axis should be set to 1 or 3 respectively.
concat axis is the second parameter long with the value in the interval [0, N) where N is the rank of all the inputs
split axis is an option of the optional options parameter long Default to 0. A negative value is interpreted as counting back from the end

@huningxin @wchao1115 PTAL, thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions