Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for FunctionDef (0.23 sec)

  1. tensorflow/c/c_test_util.cc

      if (ret) ret = node_def->ParseFromArray(buffer->data, buffer->length);
      TF_DeleteBuffer(buffer);
      TF_DeleteStatus(s);
      return ret;
    }
    
    bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def) {
      TF_Status* s = TF_NewStatus();
      TF_Buffer* buffer = TF_NewBuffer();
      TF_FunctionToFunctionDef(func, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  2. tensorflow/c/eager/unified_api_testutil.cc

        core::RefCountPtr<AbstractFunction> scoped_func;
        // Returning null tensors from a tf.function is not supported, so we keep
        // track of indices in the model's outputs are nullptr in this set.
        // The FunctionDef only outputs the non-null tensors. We later pad the
        // function op outputs to have nullptrs at the `null_indices`.
        absl::flat_hash_set<int> null_indices;
        {
          AbstractContextPtr func_ctx(BuildFunction(fn_name));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_test_util.h

    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def);
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def);
    
    bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def);
    
    bool GetAttrValue(TF_Operation* oper, const char* attr_name,
                      tensorflow::AttrValue* attr_value, TF_Status* s);
    
    // Returns a sorted vector of std::pair<function_name, gradient_func> from
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_remote_test_util.cc

    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/protobuf/tensorflow_server.pb.h"
    
    using ::tensorflow::string;
    
    string MatMulFunction(const string& matmul_device) {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          absl::StrCat("    signature {"
                       "      name: 'MatMulFunction'"
                       "      input_arg {"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      std::vector<std::string> devices{
          "/job:localhost/replica:0/task:0/device:CPU:0",
          "/job:localhost/replica:0/task:0/device:CPU:1"};
      ParallelDevice parallel_device(devices);
      const FunctionDef assert_and_collective = FunctionDefHelper::Define(
          // Name
          "AssertAndCollective",
          // Args
          {"x: float", "condition: bool"},
          // Return values
          {"y: float"},
          // Attr def
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

                                   TF_Status* status) {
      tensorflow::FunctionDef function_def;
      if (!function_def.ParseFromArray(serialized_function_def, size)) {
        status->status =
            tensorflow::errors::InvalidArgument("Invalid FunctionDef proto");
        return;
      }
    
      AnnotateEagerRuntimeConstructionContext(function_def);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api.h

    TF_CAPI_EXPORT extern void TFE_Execute(TFE_Op* op, TFE_TensorHandle** retvals,
                                           int* num_retvals, TF_Status* status);
    
    // Add a function (serialized FunctionDef protocol buffer) to ctx so
    // that it can be invoked using TFE_Execute.
    TF_CAPI_EXPORT extern void TFE_ContextAddFunctionDef(
        TFE_Context* ctx, const char* serialized_function_def, size_t size,
        TF_Status* status);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api_test.cc

          "      name: 'error_op'"
          "      op: '__OP_NAME__'"
          "    }"
          "    ret {"
          "      key: 'out'"
          "      value: 'error_op:out'"
          "    }";
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          tensorflow::str_util::StringReplace(func_str, "__OP_NAME__", op_name,
                                              /*replace_all=*/true),
          &def));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_experimental.cc

      auto* function_def = tensorflow::unwrap(ctx)->FindFunctionDef(function_name);
      if (function_def == nullptr) {
        status->status = tensorflow::errors::NotFound(
            "Unable to find FunctionDef with name: ", function_name);
        return;
      }
      string str = function_def->SerializeAsString();
      void* data = tensorflow::port::Malloc(str.length());
      str.copy(static_cast<char*>(data), str.length(), 0);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  10. tensorflow/c/c_api.h

    // The return value points to memory that is only usable until the next
    // mutation to *func.
    TF_CAPI_EXPORT extern const char* TF_FunctionName(TF_Function* func);
    
    // Write out a serialized representation of `func` (as a FunctionDef protocol
    // message) to `output_func_def` (allocated by TF_NewBuffer()).
    // `output_func_def`'s underlying buffer will be freed when TF_DeleteBuffer()
    // is called.
    //
    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)
Back to top