heterocl.tvm.tensor module¶
Tensor and Operation class for computation declaration.
-
class
ComputeOp(handle)[source]¶ Bases:
heterocl.tvm.tensor.OperationCompute operation.
-
axis¶ Represent axis of IterVar, only defined when it is a ComputeOp
-
reduce_axis¶ Represent axis of reductions, only defined when it is a ComputeOp
-
-
class
ExternOp(handle)[source]¶ Bases:
heterocl.tvm.tensor.OperationExtern operation.
-
class
Operation(handle)[source]¶ Bases:
heterocl.tvm._ffi.node.NodeBaseRepresent an operation that generate a tensor
-
input_tensors¶ List of input tensors to this op.
-
num_outputs¶ Number of outputs of this op.
-
-
class
PlaceholderOp(handle)[source]¶ Bases:
heterocl.tvm.tensor.OperationPlaceholder operation.