@marchss As this problem is more related to what JIT accepts as input to a traced module, could you post it in https://github.com/pytorch/pytorch/issues 2 so that we can discuss potential solutions with more people?