What is the best workaround in Torchscript (PyTorch 1.9.1) for scripting
cache = defaultdict(lambda: None)
, which results in UnsupportedNodeError: Lambda aren’t supported:
and
cache = defaultdict(self.my_callable)
, which results in  RuntimeError: method cannot be used as a value:
?