Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for OpDef (0.25 sec)

  1. tensorflow/c/eager/immediate_execution_operation.h

      // Return true if the inputs contain custom device tensor handle. It means
      // that the argument need to be handled by a custom device.
      virtual bool HasCustomDeviceInput() const = 0;
    
      virtual const tensorflow::OpDef* OpDef() const = 0;
    
      virtual Status InputLength(const char* input_name, int* length) = 0;
      virtual Status OutputLength(const char* output_name, int* length) = 0;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 22:40:32 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function_test.cc

      // Test we can retrieve function OpDef from graph
      TF_Buffer* buffer = TF_NewBuffer();
      TF_GraphGetOpDef(host_graph_, func_name_, buffer, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      // Sanity check returned OpDef
      string data(static_cast<const char*>(buffer->data), buffer->length);
      OpDef op_def;
      op_def.ParseFromString(data);
    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)
  3. tensorflow/c/experimental/grappler/grappler.h

    // Delete NewFunctionLibraryDefinition.
    TF_CAPI_EXPORT extern void TF_DeleteFunctionLibraryDefinition(
        TF_FunctionLibraryDefinition* fn_lib);
    
    // Shorthand for calling LookUp to get the OpDef from FunctionLibraryDefinition
    // given op name. The returned OpDef is represented by TF_Buffer.
    TF_CAPI_EXPORT extern void TF_LookUpOpDef(TF_FunctionLibraryDefinition* fn_lib,
                                              const char* name, TF_Buffer* buf,
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/grappler/grappler_test.cc

      TF_LookUpOpDef(func, "Add", op_buf, status);
      string actual_string(reinterpret_cast<const char*>(op_buf->data),
                           op_buf->length);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
    
      const OpDef* expected_op_def;
      TF_ASSERT_OK(OpRegistry::Global()->LookUpOpDef("Add", &expected_op_def));
      string expected_serialized;
      expected_op_def->SerializeToString(&expected_serialized);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.cc

    }
    
    const char* TF_GetNumberAttrForOpListInput(const char* op_name, int input_index,
                                               TF_Status* status) {
      const tensorflow::OpDef* op_def = nullptr;
      status->status =
          tensorflow::OpRegistry::Global()->LookUpOpDef(op_name, &op_def);
      if (!status->status.ok()) return nullptr;
    
      if (input_index >= op_def->input_arg_size() || input_index < 0) {
    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)
  6. tensorflow/c/c_api.h

    TF_CAPI_EXPORT extern void TF_GraphToGraphDef(TF_Graph* graph,
                                                  TF_Buffer* output_graph_def,
                                                  TF_Status* status);
    
    // Returns the serialized OpDef proto with name `op_name`, or a bad status if no
    // such op exists. This can return OpDefs of functions copied into the graph.
    TF_CAPI_EXPORT extern void TF_GraphGetOpDef(TF_Graph* graph,
    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)
  7. tensorflow/c/experimental/grappler/grappler.cc

    }
    
    void TF_LookUpOpDef(TF_FunctionLibraryDefinition* fn_lib, const char* name,
                        TF_Buffer* buf, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      const tensorflow::OpDef* op_def_ptr = nullptr;
      absl::Status s =
          reinterpret_cast<tensorflow::FunctionLibraryDefinition*>(fn_lib)
              ->LookUpOpDef(name, &op_def_ptr);
      if (!s.ok()) {
        tsl::Set_TF_Status_from_Status(status, s);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  8. tensorflow/c/c_api.cc

    using tensorflow::mutex_lock;
    using tensorflow::NameRangeMap;
    using tensorflow::NameRangesForNode;
    using tensorflow::NewSession;
    using tensorflow::Node;
    using tensorflow::NodeBuilder;
    using tensorflow::OpDef;
    using tensorflow::PartialTensorShape;
    using tensorflow::RunMetadata;
    using tensorflow::RunOptions;
    using tensorflow::Session;
    using tensorflow::Status;
    using tensorflow::string;
    using tensorflow::Tensor;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

        ASSERT_GE(op_list.op_size(), 1);
        typedef tensorflow::protobuf::RepeatedPtrField<tensorflow::OpDef> OpDefs;
        const OpDefs& ops = op_list.op();
        bool found = std::find_if(ops.begin(), ops.end(),
                                  [](const tensorflow::OpDef& op_def) {
                                    return op_def.name() == "TestCApi";
                                  }) != ops.end();
    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)
  10. tensorflow/c/eager/c_api_test.cc

      TFE_OpAddInput(concatOp, dim, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      CHECK(tensorflow::unwrap(concatOp)->OpDef());
      TFE_OpAddInput(concatOp, inputs[0], status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      EXPECT_FALSE(tensorflow::unwrap(concatOp)->OpDef())
          << "Inference context is still present";
      TFE_OpAddInput(concatOp, inputs[1], status);
    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)
Back to top