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

Method __init__

python/tvm_ffi/access_path.py:106–111  ·  view source on GitHub ↗

Disallow direct construction; use `AccessPath.root()` instead.

(self)

Source from the content-addressed store, hash-verified

104 # tvm-ffi-stubgen(end)
105
106 def __init__(self) -> None:
107 """Disallow direct construction; use `AccessPath.root()` instead."""
108 raise ValueError(
109 "AccessPath can't be initialized directly. "
110 "Use AccessPath.root() to create a path to the root object"
111 )
112
113 @staticmethod
114 def root() -> AccessPath:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected