MCPcopy Create free account
hub / github.com/apache/tvm-ffi / __init__

Method __init__

tests/scripts/benchmark_dlpack.py:46–48  ·  view source on GitHub ↗

Initialize the TestFFITensor.

(self, tensor: tvm_ffi.Tensor)

Source from the content-addressed store, hash-verified

44 """Test FFI Tensor that exposes __tvm_ffi_object__ protocol."""
45
46 def __init__(self, tensor: tvm_ffi.Tensor) -> None:
47 """Initialize the TestFFITensor."""
48 self._tensor = tensor
49
50 def __tvm_ffi_object__(self) -> tvm_ffi.Tensor:
51 """Implement __tvm_ffi_object__ protocol."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected