@@ -409,35 +409,13 @@ def jupyter_notebook(script_blocks, gallery_conf, target_dir, real_func):
409409from sphinx_gallery .sorting import ExplicitOrder
410410
411411examples_dirs = [
412- # legacy tutorial structure under gallery folder
413- tvm_path .joinpath ("gallery" , "tutorial" ),
414- tvm_path .joinpath ("gallery" , "how_to" , "compile_models" ),
415- tvm_path .joinpath ("gallery" , "how_to" , "deploy_models" ),
416- tvm_path .joinpath ("gallery" , "how_to" , "work_with_relay" ),
417- tvm_path .joinpath ("gallery" , "how_to" , "work_with_schedules" ),
418- tvm_path .joinpath ("gallery" , "how_to" , "optimize_operators" ),
419- tvm_path .joinpath ("gallery" , "how_to" , "tune_with_autotvm" ),
420- tvm_path .joinpath ("gallery" , "how_to" , "tune_with_autoscheduler" ),
421- tvm_path .joinpath ("gallery" , "how_to" , "extend_tvm" ),
422- # New tutorial structure under docs folder
423412 tvm_path .joinpath ("docs" , "get_started" , "tutorials" ),
424413 tvm_path .joinpath ("docs" , "how_to" , "tutorials" ),
425414 tvm_path .joinpath ("docs" , "deep_dive" , "relax" , "tutorials" ),
426415 tvm_path .joinpath ("docs" , "deep_dive" , "tensor_ir" , "tutorials" ),
427416]
428417
429418gallery_dirs = [
430- # legacy tutorial structure under gallery folder
431- "tutorial" ,
432- "how_to/compile_models" ,
433- "how_to/deploy_models" ,
434- "how_to/work_with_relay" ,
435- "how_to/work_with_schedules" ,
436- "how_to/optimize_operators" ,
437- "how_to/tune_with_autotvm" ,
438- "how_to/tune_with_autoscheduler" ,
439- "how_to/extend_tvm" ,
440- # New tutorial structure under docs folder
441419 "get_started/tutorials/" ,
442420 "how_to/tutorials/" ,
443421 "deep_dive/relax/tutorials/" ,
@@ -448,68 +426,7 @@ def jupyter_notebook(script_blocks, gallery_conf, target_dir, real_func):
448426# The listed files are sorted according to the list.
449427# The unlisted files are sorted by filenames.
450428# The unlisted files always appear after listed files.
451- within_subsection_order = {
452- "tutorial" : [
453- "introduction.py" ,
454- "install.py" ,
455- "tvmc_command_line_driver.py" ,
456- "tvmc_python.py" ,
457- "autotvm_relay_x86.py" ,
458- "tensor_expr_get_started.py" ,
459- "autotvm_matmul_x86.py" ,
460- "auto_scheduler_matmul_x86.py" ,
461- "tensor_ir_blitz_course.py" ,
462- "topi.pi" ,
463- "cross_compilation_and_rpc.py" ,
464- "relay_quick_start.py" ,
465- "uma.py" ,
466- ],
467- "compile_models" : [
468- "from_pytorch.py" ,
469- "from_tensorflow.py" ,
470- "from_mxnet.py" ,
471- "from_onnx.py" ,
472- "from_keras.py" ,
473- "from_tflite.py" ,
474- "from_coreml.py" ,
475- "from_darknet.py" ,
476- "from_caffe2.py" ,
477- "from_paddle.py" ,
478- ],
479- "work_with_schedules" : [
480- "schedule_primitives.py" ,
481- "reduction.py" ,
482- "scan.py" ,
483- "extern_op.py" ,
484- "tensorize.py" ,
485- "tuple_inputs.py" ,
486- "tedd.py" ,
487- ],
488- "optimize_operators" : [
489- "opt_gemm.py" ,
490- "opt_conv_cuda.py" ,
491- "opt_conv_tensorcore.py" ,
492- ],
493- "tune_with_autotvm" : [
494- "tune_conv2d_cuda.py" ,
495- "tune_relay_cuda.py" ,
496- "tune_relay_x86.py" ,
497- "tune_relay_arm.py" ,
498- "tune_relay_mobile_gpu.py" ,
499- ],
500- "tune_with_autoscheduler" : [
501- "tune_matmul_x86.py" ,
502- "tune_conv2d_layer_cuda.py" ,
503- "tune_network_x86.py" ,
504- "tune_network_cuda.py" ,
505- ],
506- "extend_tvm" : [
507- "low_level_custom_pass.py" ,
508- "use_pass_infra.py" ,
509- "use_pass_instrument.py" ,
510- "bring_your_own_datatypes.py" ,
511- ],
512- }
429+ within_subsection_order = {}
513430
514431
515432class WithinSubsectionOrder :
0 commit comments