MCPcopy Create free account
hub / github.com/apache/tvm / append

Method append

python/tvm/s_tir/schedule/trace.py:123–137  ·  view source on GitHub ↗

Append a new instruction to the trace Parameters ---------- insts : Instruction The new instruction to be appended decision : Optional[DECISION_TYPE] = None The random decision made on this instruction

(
        self,
        inst: Instruction,
        decision: DECISION_TYPE | None = None,
    )

Source from the content-addressed store, hash-verified

121 return _ffi_api.TraceGetDecision(self, inst) # type: ignore # pylint: disable=no-member
122
123 def append(
124 self,
125 inst: Instruction,
126 decision: DECISION_TYPE | None = None,
127 ) -> None:
128 """Append a new instruction to the trace
129
130 Parameters
131 ----------
132 insts : Instruction
133 The new instruction to be appended
134 decision : Optional[DECISION_TYPE] = None
135 The random decision made on this instruction
136 """
137 _ffi_api.TraceAppend(self, inst, decision) # type: ignore # pylint: disable=no-member
138
139 def pop(self) -> Instruction | None:
140 """Remove the last instruction, along with the decision made on that instruction, if any

Callers 15

pytest_sessionstartFunction · 0.45
decodeToStrMethod · 0.45
package_lib_pathsFunction · 0.45
append_or_updateMethod · 0.45
_commit_internalMethod · 0.45
conv_output_shapeFunction · 0.45
conv_dgrad_shapeFunction · 0.45
create_aot_sharedFunction · 0.45
LUT_generationFunction · 0.45
_get_cutlass_pathFunction · 0.45

Calls

no outgoing calls

Tested by 15

pytest_sessionstartFunction · 0.36
failed_test_idsFunction · 0.36
_to_concrete_shapeFunction · 0.36
visit_paramMethod · 0.36
generate_np_inputsFunction · 0.36
np2jnpFunction · 0.36
test_batch_processingMethod · 0.36
test_mlp_blockbuilderFunction · 0.36
test_complexFunction · 0.36
test_matmulFunction · 0.36
get_parallel_matmulFunction · 0.36