Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for TF_DeleteFunction (0.29 sec)

  1. tensorflow/c/c_api_function_test.cc

        AssertEqual(func1, funcs[1]);
      } else {
        AssertEqual(func0, funcs[1]);
        AssertEqual(func1, funcs[0]);
      }
    
      TF_DeleteFunction(funcs[0]);
      TF_DeleteFunction(funcs[1]);
    
      TF_DeleteFunction(func0);
      TF_DeleteFunction(func1);
    }
    
    }  // namespace
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  2. tensorflow/c/c_api_experimental_test.cc

     protected:
      CApiExperimentalFunctionTest()
          : s_(TF_NewStatus()), func_graph_(TF_NewGraph()), func_(nullptr) {}
    
      void SetUp() override {}
    
      ~CApiExperimentalFunctionTest() override {
        TF_DeleteFunction(func_);
        TF_DeleteGraph(func_graph_);
        TF_DeleteStatus(s_);
      }
    
      const char* func_name_ = "MyFunc";
      TF_Status* s_;
      TF_Graph* func_graph_;
      TF_Function* func_;
    };
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_experimental.cc

    using tensorflow::FunctionDef;
    using tensorflow::Node;
    using tensorflow::NodeBuilder;
    using tensorflow::Status;
    using tensorflow::errors::InvalidArgument;
    
    namespace {
    typedef std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)>
        UniqueFuncPtr;
    }
    
    // struct TF_Operation { tensorflow::Node node; };
    static TF_Operation* ToTF_Operation(Node* node) {
      return static_cast<TF_Operation*>(static_cast<void*>(node));
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      if (TF_GetCode(status) != TF_OK) return;
      TF_Operation* operations[]{placeholder_op, reduce_op};
      TF_Output y{reduce_op, 0};
      const char* output_name = "y";
      std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)> function(
          TF_GraphToFunction(
              /* fn_body */ body.get(), /* fn_name */ function_name,
              /* append_hash_to_fn_name */ 0, /* num_opers */ 2,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  5. tensorflow/c/c_api.h

        TF_Status* status);
    
    // Frees the memory used by the `func` struct.
    // TF_DeleteFunction is a noop if `func` is null.
    // Deleting a function does not remove it from any graphs it was copied to.
    TF_CAPI_EXPORT extern void TF_DeleteFunction(TF_Function* func);
    
    // Attempts to evaluate `output`. This will only be possible if `output` doesn't
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  6. tensorflow/c/c_api_function.cc

                            "' has no attr named '", attr_name, "'.");
        return;
      }
      status->status = MessageToBuffer(it->second, output_attr_value);
    }
    
    void TF_DeleteFunction(TF_Function* func) {
      if (func == nullptr) {
        return;
      }
    
      func->record->Unref();
      func->record = nullptr;
      delete func;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

                                       graph_outputs.size(), graph_outputs.data(),
                                       nullptr, nullptr, name_.data(), s);
        *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 {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
      TFE_ContextAddFunction(ctx, fn, status);
      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
      TF_DeleteFunction(fn);
    
      for (bool async : {false, true, false}) {
        TFE_Executor* old_executor = TFE_ContextGetExecutorForThread(ctx);
        TFE_Executor* executor = TFE_NewExecutor(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_experimental.h

    TF_CAPI_EXPORT extern void TFE_ContextGetGraphDebugInfo(
        TFE_Context* ctx, const char* function_name, TF_Buffer* buf,
        TF_Status* status);
    
    // Extracts a TF_Function from the context.
    // Must call TF_DeleteFunction on the returned value.
    TF_CAPI_EXPORT extern TF_Function* TFE_ContextGetFunction(TFE_Context* ctx,
                                                              const char* name,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

      TF_DeleteTensor(nullptr);
      TF_DeleteSessionOptions(nullptr);
      TF_DeleteGraph(nullptr);
      TF_DeleteImportGraphDefOptions(nullptr);
      TF_DeleteImportGraphDefResults(nullptr);
      TF_DeleteFunction(nullptr);
      TF_DeleteSession(nullptr, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeletePRunHandle(nullptr);
      TF_DeleteDeprecatedSession(nullptr, status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top