Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for GetFunctionDef (0.4 seconds)

  1. tensorflow/c/eager/graph_function.cc

    namespace graph {
    GraphFunction::GraphFunction(FunctionDef fdef)
        : AbstractFunction(kGraph),
          func_record_(new FunctionRecord(std::move(fdef), {}, true)) {}
    GraphFunction::~GraphFunction() {}
    absl::Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) {
      *fdef = &(func_record_->fdef());
      return absl::OkStatus();
    }
    }  // namespace graph
    }  // namespace tracing
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  2. tensorflow/c/eager/graph_function.h

     public:
      explicit GraphFunction(FunctionDef fdef);
      ~GraphFunction() override;
    
      // GraphFunction maybe stay alive for the duration of the returned
      // FunctionDef.
      absl::Status GetFunctionDef(const FunctionDef** fdef) override;
    
      // Returns a shared reference to the wrapped function.
      absl::StatusOr<core::RefCountPtr<FunctionRecord>> GetFunctionRecord()
          override {
        return func_record_.GetNewRef();
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  3. tensorflow/c/eager/abstract_function.h

     public:
      // Returns which subclass is this instance of.
      AbstractFunctionKind getKind() const { return kind_; }
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual absl::Status GetFunctionDef(const FunctionDef**) = 0;
    
      // Returns a shared reference to the wrapped function.
      virtual absl::StatusOr<core::RefCountPtr<FunctionRecord>>
      GetFunctionRecord() = 0;
    
     private:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 1.9K bytes
    - Click Count (0)
  4. tensorflow/c/c_api_function_test.cc

      tensorflow::FunctionDef fdef1, fdef2;
      ASSERT_TRUE(GetFunctionDef(f1, &fdef1));
      ASSERT_TRUE(GetFunctionDef(f2, &fdef2));
      SerializeToStringDeterministic(fdef1, &s1);
      SerializeToStringDeterministic(fdef2, &s2);
      ASSERT_EQ(s1, s2);
    }
    
    std::string GetName(TF_Function* func) {
      tensorflow::FunctionDef fdef;
      GetFunctionDef(func, &fdef);
      return fdef.signature().name();
    }
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 63.9K bytes
    - Click Count (1)
  5. tensorflow/c/c_test_util.cc

      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      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;
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 17.8K bytes
    - Click Count (1)
Back to Top