Can't construct a tensor from List[SymFloat]
Labels: triaged, oncall: pt2, module: dynamic shapes, module: dynamo, mlperf

### 🐛 Describe the bug

Continue from https://github.com/pytorch/pytorch/issues/106101, apply the fix.

```
import torch
import torchaudio
from torchaudio.io import StreamReader

bundle = torchaudio.pipelines.EMFORMER_RNNT_BASE_LIBRISPEECH

feature_extractor = bundle.get_streaming_feature_extractor()
decoder = bundle.get_decoder()
token_processor = bundle.get_token_processor()

# random values
# This works
decoder(torch.randn(80, 80), length=torch.tensor([1.0]), beam_width=10)

decoder = torch.compile(decoder, fullgraph=True)

# This does not work
decoder(torch.randn(80, 80), length=torch.tensor([1.0]), beam_width=10)
```



### Error logs

```
Unsupported: torch.tensor call with list of unspec
from user code:
   File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torchaudio/models/rnnt_decoder.py", line 293, in forward
    return self._search(enc_out, None, beam_width)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torchaudio/models/rnnt_decoder.py", line 246, in _search
    b_hypos = self._gen_b_hypos(b_hypos, a_hypos, next_token_probs, key_to_b_hypo)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torchaudio/models/rnnt_decoder.py", line 164, in _gen_b_hypos
    _, sorted_idx = torch.tensor([_get_hypo_score(hypo) for hypo in b_hypos]).sort()
Set TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information
  File "/usr/local/fbcode/platform010/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/local/fbcode/platform010/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/usr/local/fbcode/platform010/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/executorch/examples/export/test/test_export.py", line 90, in test_emformer_export_to_executorch
    self._assert_eager_lowered_same_result(
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/executorch/examples/export/test/test_export.py", line 37, in _assert_eager_lowered_same_result
    edge_model = exir.capture(eager_model, example_inputs, _CAPTURE_CONFIG).to_edge(
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/executorch/exir/capture/_capture.py", line 84, in capture
    ep = export(f, args, constraints=constraints)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_export/__init__.py", line 222, in export
    gm_torch_level, _ = torch._dynamo.export(
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/eval_frame.py", line 1197, in inner
    result_traced = opt_f(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/eval_frame.py", line 333, in _fn
    return fn(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/eval_frame.py", line 493, in catch_errors
    return callback(frame, cache_size, hooks, frame_state)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/convert_frame.py", line 132, in _fn
    return fn(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/convert_frame.py", line 370, in _convert_frame_assert
    return _compile(
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/convert_frame.py", line 536, in _compile
    guarded_code = compile_inner(code, one_graph, hooks, transform)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/utils.py", line 180, in time_wrapper
    r = func(*args, **kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/convert_frame.py", line 447, in compile_inner
    out_code = transform_code_object(code, transform)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/bytecode_transformation.py", line 1028, in transform_code_object
    transformations(instructions, code_options)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/convert_frame.py", line 425, in transform
    tracer.run()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 2071, in run
    super().run()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 724, in run
    and self.step()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 688, in step
    getattr(self, inst.opname)(inst)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 392, in wrapper
    return inner_fn(self, inst)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 1115, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 562, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/functions.py", line 307, in call_function
    return super().call_function(tx, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/functions.py", line 261, in call_function
    return super().call_function(tx, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/functions.py", line 90, in call_function
    return tx.inline_user_function_return(
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 598, in inline_user_function_return
    result = InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 2176, in inline_call
    return cls.inline_call_(parent, func, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 2283, in inline_call_
    tracer.run()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 724, in run
    and self.step()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 688, in step
    getattr(self, inst.opname)(inst)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 392, in wrapper
    return inner_fn(self, inst)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 1115, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 562, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/functions.py", line 307, in call_function
    return super().call_function(tx, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/functions.py", line 261, in call_function
    return super().call_function(tx, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/functions.py", line 90, in call_function
    return tx.inline_user_function_return(
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 598, in inline_user_function_return
    result = InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 2176, in inline_call
    return cls.inline_call_(parent, func, args, kwargs)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 2283, in inline_call_
    tracer.run()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 724, in run
    and self.step()
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 688, in step
    getattr(self, inst.opname)(inst)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 392, in wrapper
    return inner_fn(self, inst)
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 1115, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/symbolic_convert.py", line 562, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/variables/torch.py", line 715, in call_function
    unimplemented("torch.tensor call with list of unspec")
  File "/data/sandcastle/boxes/fbsource/buck-out/v2/gen/fbcode/a95c0f0718520e1f/executorch/examples/export/test/__test_export__/test_export#link-tree/torch/_dynamo/exc.py", line 143, in unimplemented
    raise Unsupported(msg)
```

### Minified repro

_No response_

### Versions

Can't run the script.

On top of FB Internal repo commit: 13420fcffc88ddc1d369ea28e6637116638fe16d

cc @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng @ipiszy