Skip to content

Need help with understanding the code #2

@richielo

Description

@richielo

Hi @ymym3412 ,

Thank you for the great work. Sorry if I sound ignorant. but I am trying to understand how the code works thoroughly

May I ask what do the following lines do in the main_reconstruction script? Thanks a lot for your help in advance.

t1 = args.sentence_len + 2 * (args.filter_shape - 1)

t2 = int(math.floor((t1 - args.filter_shape) / 2) + 1) # "2" means stride size

t3 = int(math.floor((t2 - args.filter_shape) / 2) + 1) - 2

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