MCPcopy Index your code
hub / github.com/apache/tvm / assert

Function assert

web/src/support.ts:65–69  ·  view source on GitHub ↗
(condition: boolean, msg?: string)

Source from the content-addressed store, hash-verified

63 * @param msg The message.
64 */
65export function assert(condition: boolean, msg?: string): asserts condition {
66 if (!condition) {
67 throw new Error("AssertError:" + (msg || ""));
68 }
69}
70
71/**
72 * Get the path to the wasm library in nodejs.

Callers 15

createShadeInternalMethod · 0.90
submitShaderMethod · 0.90
deviceFreeDataSpaceMethod · 0.90
gpuBufferFromPtrMethod · 0.90
wrapImportMethod · 0.90
wrapExportMethod · 0.90
wasmSafeCallMethod · 0.90
readByteArrayMethod · 0.90
onDataReadyMethod · 0.90
onPacketReadyMethod · 0.90
onInitServerMethod · 0.90
asyncInitServerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…