Skip to content

sequence_mask on batches #6

@vilmar-hillow

Description

@vilmar-hillow

I've decided to run your code, and notebooks run just fine, with one-shot iterators. However, when I try to run trainer.py (which utilizes batching), I get the following error:
ValueError: maxlen must be scalar for sequence_mask
If I try to remove maxlen argument, I get another error instead:
TypeError: 'Tensor' object cannot be interpreted as an integer

Clearly sequence_mask is not ready for this batched input. How did you tackle this issue? I'm on tensorflow 1.4.

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