MCPcopy Create free account
hub / github.com/tensorflow/tfjs / isNotCustomOp

Function isNotCustomOp

tfjs/tools/custom_module/cli.ts:127–131  ·  view source on GitHub ↗
(kernelName: string)

Source from the content-addressed store, hash-verified

125 // they will have __op as a suffix. These do not have corresponding backend
126 // kernels so we need to filter them out.
127 function isNotCustomOp(kernelName: string) {
128 // opSuffix value is defined in tfjs-core/src/operation.ts
129 // duplicating it here to avoid an export.
130 return !kernelName.endsWith(OP_SCOPE_SUFFIX);
131 }
132
133 return config.kernels.filter(isNotCustomOp);
134}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…