Skip to content

tensorflow-tutorial/cpp/src/ann_model_loader.cpp #4

@Edwardmark

Description

@Edwardmark

line 43, what does this line mean? what does the <float, 2> mean?
what does x_map(0, j) = (*vec)[j]; mean?

auto x_map = x.tensor<float, 2>();
for (int j = 0; j < ndim; j++) {
x_map(0, j) = (*vec)[j];
}

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