Skip to content

why only set pairwise once? #25

@s20163081161

Description

@s20163081161

/* cost types /
using unary_t = UnaryTable<cost_t, simd_w>;
using pairwise_t = PairwiseTruncatedLinear<cost_t, simd_w>;
.......
/
construct pairwise costs */
pairwise = std::unique_ptr<pairwise_t>(new pairwise_t({1.0, 2.0}));
.....

for(luint_t n = 0; n < num_nodes; ++n)
mapmap.set_unary(n, unaries[n].get());
mapmap.set_pairwise(pairwise.get());

why only set pairwise once? what dose "new pairwise_t({1.0, 2.0})" mean ?

Look forward to your reply. Thanks!

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