Skip to content

❓ [Question] How to set three input tensor shape in input_shape?  #493

@wxyhv

Description

@wxyhv

❓ Question

I have three input tensor:src_tokens, dummy_embeded_x, dummy_encoder_embedding
In this case, I don't konw how to set input_shape in compile_settings's "input_shape"
Who can help me? Thank you!

encoder_out = model.forward_encoder([src_tokens, dummy_embeded_x, dummy_encoder_embedding])
...
script_encoder = torch.jit.script(encoder)...
compile_settings = { "input_shapes": [[2, 16]], "op_precision": torch.float32 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions