Skip to content

Found a bug in proNet.cpp, function fastSigmoid(x) #40

@De-Light

Description

@De-Light

the return sentence
return cached_sigmoid[int((x + MAX_SIGMOID) * SIGMOID_TABLE_SIZE / MAX_SIGMOID / 2)];
lead to Segmentation Fault (core dumped)
after I change the sentence to
return cached_sigmoid[int(int(x + MAX_SIGMOID) * SIGMOID_TABLE_SIZE / MAX_SIGMOID / 2)];
it run correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions