[BUG REPORT]Can not find valid schedule when tuning resnet

Hi, I am using M1 mac to tune resnet50. I have installed tvm and following the tutorial. But an error occur when I try to tune resnet50 both on command and using python code. Here is my command

tvmc tune \
--target "llvm" \
--output resnet50-v2-7-autotuner_records.json \
resnet50-v2-7.onnx

However, this is the error I met.

/tvm/target/target.py:272: UserWarning: target_host parameter is going to be deprecated. Please pass in tvm.target.Target(target, host=target_host) instead.
  warnings.warn(
[Task  1/25]  Current/Best:    0.00/   0.00 GFLOPS | Progress: (0/40) | 0.00 s2022-08-01 01:10:58.067 INFO Finish serving ('127.0.0.1', 55198)
2022-08-01 01:10:58.218 INFO Finish serving ('127.0.0.1', 55200)
[Task  1/25]  Current/Best:    0.00/   0.00 GFLOPS | Progress: (40/40) | 6.47 sWARNING:root:Could not find any valid schedule for task Task(func_name=conv2d_NCHWc.x86, args=(('TENSOR', (1, 3, 224, 224), 'float32'), ('TENSOR', (64, 3, 7, 7), 'float32'), (2, 2), (3, 3, 3, 3), (1, 1), 'NCHW', 'NCHW', 'float32'), kwargs={}, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 3, 224, 224), 'float32'), ('TENSOR', (64, 3, 7, 7), 'float32'), (2, 2), (3, 3, 3, 3), (1, 1), 'NCHW', 'NCHW', 'float32')). A file containing the errors has been written to /var/folders/fh/2cjbc37x4h5gp0md225krl8c0000gn/T/tvm_tuning_errors_9dkti5kc.log.

It seems that it could not find a schedule for this operation. And this operation is x86 arch. But my pc is M1 mac. And I find the report which is stored in log

('Traceback (most recent call last):\n  File "/Users/catbeta/Documents/research/tvm/python/tvm/autotvm/measure/measure_methods.py", line 597, in __call__\n    func.export_library(filename, self.build_func)\n  File "/Users/catbeta/Documents/research/tvm/python/tvm/runtime/module.py", line 538, in export_library\n    return fcompile(file_name, files, **kwargs)\n  File "/Users/catbeta/Documents/research/tvm/python/tvm/contrib/tar.py", line 58, in tar\n    raise RuntimeError(msg)\nRuntimeError: Tar error:\ntar: no files or directories specified\n\n', RuntimeError('Tar error:\ntar: no files or directories specified\n'))
Traceback (most recent call last):
  File "/Users/catbeta/Documents/research/tvm/python/tvm/autotvm/measure/measure_methods.py", line 597, in __call__
    func.export_library(filename, self.build_func)
  File "/Users/catbeta/Documents/research/tvm/python/tvm/runtime/module.py", line 538, in export_library
    return fcompile(file_name, files, **kwargs)
  File "/Users/catbeta/Documents/research/tvm/python/tvm/contrib/tar.py", line 58, in tar
    raise RuntimeError(msg)
RuntimeError: Tar error:
tar: no files or directories specified

Is there any problem that I should tell which kind of mcpu should compile to?

1 Like