- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for RegisterFunction (0.29 sec)
-
tensorflow/c/experimental/gradients/tape/tape_context.cc
// parent_ctx_->Unref(); } TapeOperation* TapeContext::CreateOperation() { return new TapeOperation(parent_ctx_->CreateOperation(), tape_, registry_); } Status TapeContext::RegisterFunction(AbstractFunction* f) { return parent_ctx_->RegisterFunction(f); } Status TapeContext::RemoveFunction(const string& func) { return parent_ctx_->RemoveFunction(func); } } // namespace gradients
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 23 23:12:39 UTC 2020 - 1.7K bytes - Viewed (0) -
tensorflow/c/eager/abstract_context.h
virtual AbstractOperation* CreateOperation() = 0; // Registers a function with this context, after this the function is // available to be called/referenced by its name in this context. virtual Status RegisterFunction(AbstractFunction*) = 0; // Remove a function. 'func' argument is the name of a previously added // FunctionDef. The name is in fdef.signature.name. virtual Status RemoveFunction(const string& func) = 0; private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Oct 24 11:16:58 UTC 2021 - 3K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/tape/tape_context.h
class TapeContext : public AbstractContext { public: explicit TapeContext(AbstractContext*, Tape*, const GradientRegistry&); void Release() override; TapeOperation* CreateOperation() override; Status RegisterFunction(AbstractFunction*) override; Status RemoveFunction(const string& func) override; // For LLVM style RTTI. static bool classof(const AbstractContext* ptr) { return ptr->getKind() == kTape; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 23 23:12:39 UTC 2020 - 1.6K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/function.cc
{ const tensorflow::FunctionDef* fdef = nullptr; TF_RETURN_IF_ERROR(trace->GetFunctionDef(&fdef)); fname = fdef->signature().name(); } // TODO(srbs): Update RegisterFunction to accept AbstractFunctionPtr. TF_RETURN_IF_ERROR(ctx->RegisterFunction(trace.get())); auto cleanup = absl::MakeCleanup( [fname, ctx]() { ctx->RemoveFunction(fname).IgnoreError(); }); auto call_op = AbstractOperationPtr(ctx->CreateOperation());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 04 19:49:06 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.cc
->Finalize(&output_list, &func)); scoped_func.reset(func); for (auto output : output_list.outputs) { output->Unref(); } TF_RETURN_IF_ERROR(ctx->RegisterFunction(func)); } AbstractOperationPtr fn_op(ctx->CreateOperation()); TF_RETURN_IF_ERROR(fn_op->Reset(fn_name, /*raw_device_name=*/nullptr)); for (auto input : inputs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental.cc
TF_AbstractFunction* func, TF_Status* s) { tsl::Set_TF_Status_from_Status(s, unwrap(ctx)->RegisterFunction(unwrap(func)));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 10:15:17 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
*f = new GraphFunction(std::move(func->record->fdef())); TF_DeleteFunction(func); TF_RETURN_IF_ERROR(StatusFromTF_Status(s)); TF_DeleteStatus(s); return absl::OkStatus(); } Status RegisterFunction(AbstractFunction* func) override { return errors::Unimplemented( "Registering graph functions has not been implemented yet."); } Status RemoveFunction(const string& func) override {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 20:00:09 UTC 2024 - 15.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
const tensorflow::PartialTensorShape& shape, TracingTensorHandle** handle) override; Status Finalize(OutputList* outputs, AbstractFunction** f) override; Status RegisterFunction(AbstractFunction* func) override { return Unimplemented( "Registering graph functions has not been implemented yet."); } Status RemoveFunction(const string& func) override {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0)