- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for OpKernel (0.07 seconds)
-
tensorflow/c/eager/c_api_test.cc
.Doc(R"doc(Test communication op throwing Unavailable error.)doc"); // Kernel that throws an Unavailable error. class TestUnavailableErrorOp : public tensorflow::OpKernel { public: explicit TestUnavailableErrorOp(tensorflow::OpKernelConstruction* ctx) : tensorflow::OpKernel(ctx) {} void Compute(tensorflow::OpKernelContext* ctx) override { ctx->SetStatus(tensorflow::errors::Unavailable("Test error.")); } };
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 09 05:56:18 GMT 2025 - 94.6K bytes - Click Count (0) -
tensorflow/c/c_api_test.cc
TF_DeleteBuffer(api_def_buf); TF_DeleteApiDefMap(api_def_map); TF_DeleteBuffer(op_list_buf); } class DummyKernel : public tensorflow::OpKernel { public: explicit DummyKernel(tensorflow::OpKernelConstruction* context) : OpKernel(context) {} void Compute(tensorflow::OpKernelContext* context) override {} }; // Test we can query kernels REGISTER_OP("TestOpWithSingleKernel")
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 97.3K bytes - Click Count (0)