MCPcopy Index your code
hub / github.com/tensorflow/tfjs / isRegisteredKernelInvocation

Function isRegisteredKernelInvocation

tfjs-core/src/engine.ts:104–110  ·  view source on GitHub ↗
(
    kernelInvocation: RegisteredKernelInvocation<I>|
    CustomGradKernelInvocation<T, I>)

Source from the content-addressed store, hash-verified

102}
103
104function isRegisteredKernelInvocation<T extends Tensor|Tensor[],
105 I extends NamedTensorMap>(
106 kernelInvocation: RegisteredKernelInvocation<I>|
107 CustomGradKernelInvocation<T, I>):
108 kernelInvocation is RegisteredKernelInvocation<I> {
109 return (kernelInvocation as RegisteredKernelInvocation<I>).kernelName != null;
110}
111
112class EngineState {
113 // Public since optimizers will use it.

Callers 1

runKernelFuncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…