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

Method is_in_scope

python/tvm/script/ir_builder/base.py:150–158  ·  view source on GitHub ↗

See if the current thread-local scope has an IRBuilder. Returns ------- bool Whether the current thread-local scope has an IRBuilder

()

Source from the content-addressed store, hash-verified

148
149 @staticmethod
150 def is_in_scope() -> bool:
151 """See if the current thread-local scope has an IRBuilder.
152
153 Returns
154 -------
155 bool
156 Whether the current thread-local scope has an IRBuilder
157 """
158 return _ffi_api.IRBuilderIsInScope() # type: ignore[attr-defined] # pylint: disable=no-member
159
160 def get(self) -> _Object:
161 """Get the constructed IR."""

Callers 3

DTensorFunction · 0.80
_lookup_device_meshFunction · 0.80
_current_s_tirFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected