[jit][tracer] allow traced modules to return dicts with tuple values when strict=False (#49568)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49568
We have some inference use cases where the expected output of a module is of the form `{"key": (t1, t1)}` and are currently jit tracing the modules until we can reach jit script compatibility.
Test Plan: buck test mode/dev caffe2/test:jit -- 'test_trace_returning_complex_dict'
Reviewed By: houseroad
Differential Revision: D25624152
fbshipit-source-id: 5adef0e3c9d54cd31ad5fece4ac6530d541fd673