mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 19:40:28 +00:00
[fx] add torchaudio test (#1369)
* [fx]add torchaudio test * [fx]add torchaudio test * [fx] add torchaudio test * [fx] add torchaudio test * [fx] add torchaudio test * [fx] add torchaudio test * [fx] add torchaudio test * [fx] add torchaudio test and test patches * Delete ~ * [fx] add patches and patches test * [fx] add patches and patches test * [fx] fix patches * [fx] fix rnn patches * [fx] fix rnn patches * [fx] fix rnn patches * [fx] fix rnn patches * [fx] merge upstream * [fx] fix import errors
This commit is contained in:
@@ -22,7 +22,7 @@ def trace_and_compare(model_cls, tracer, data, meta_args=None):
|
||||
with torch.no_grad():
|
||||
fx_out = gm(data)
|
||||
non_fx_out = model(data)
|
||||
|
||||
|
||||
# compare output
|
||||
if isinstance(fx_out, tuple):
|
||||
# some models produce tuple as output
|
||||
|
Reference in New Issue
Block a user