Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FunctionRecord (0.23 sec)

  1. tensorflow/c/eager/graph_function.h

      // Returns a shared reference to the wrapped function.
      absl::StatusOr<core::RefCountPtr<FunctionRecord>> GetFunctionRecord()
          override {
        return func_record_.GetNewRef();
      }
    
      // For LLVM style RTTI.
      static bool classof(const AbstractFunction* ptr) {
        return ptr->getKind() == kGraph;
      }
    
     private:
      core::RefCountPtr<FunctionRecord> func_record_;
    };
    }  // namespace graph
    }  // namespace tracing
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/abstract_function.h

    #include "tensorflow/core/platform/intrusive_ptr.h"
    #include "tensorflow/core/platform/refcount.h"
    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    
    class FunctionRecord;
    
    // A traced function: this hides the complexity of converting the serialized
    // representation between various supported formats e.g. FunctionDef and Mlir
    // function.
    class AbstractFunction : public core::RefCounted {
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/graph_function.cc

    #include "tensorflow/core/platform/status.h"
    
    namespace tensorflow {
    namespace tracing {
    namespace graph {
    GraphFunction::GraphFunction(FunctionDef fdef)
        : AbstractFunction(kGraph),
          func_record_(new FunctionRecord(std::move(fdef), {}, true)) {}
    GraphFunction::~GraphFunction() {}
    Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) {
      *fdef = &(func_record_->fdef());
      return absl::OkStatus();
    }
    }  // namespace graph
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function.cc

      for (const Node* n : fn_body->graph.nodes()) {
        stack_traces[n->name()] = n->GetStackTrace();
      }
    
      TF_Function* tf_function = new TF_Function();
      tf_function->record = new tensorflow::FunctionRecord(
          std::move(fdef), std::move(stack_traces), false);
    
      return tf_function;
    }
    
    TF_Function* TF_GraphToFunction(const TF_Graph* fn_body, const char* fn_name,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  5. tensorflow/c/c_api_internal.h

      std::vector<tensorflow::string> missing_unused_key_names_data;
    };
    
    struct TF_DeviceList {
      std::vector<tensorflow::DeviceAttributes> response;
    };
    
    struct TF_Function {
      tensorflow::FunctionRecord* record;
    };
    
    struct TF_ApiDefMap {
      explicit TF_ApiDefMap(const tensorflow::OpList& op_list)
          :
    #if !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
            api_def_map(op_list),
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sat May 13 00:49:12 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/immediate_execution_context.h

      // Find and return a added function by its name.
      virtual const FunctionDef* FindFunctionDef(const string& name) const = 0;
    
      // Find and return a function record added by its name.
      virtual core::RefCountPtr<FunctionRecord> FindRecord(
          const string& name) const = 0;
    
      // Return the ParsedName of Host CPU device.
      virtual const DeviceNameUtils::ParsedName& HostCPUParsedName() const = 0;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api.cc

    }
    
    TF_Function* TFE_ContextGetFunction(TFE_Context* ctx, const char* name,
                                        TF_Status* status) {
      tensorflow::core::RefCountPtr<tensorflow::FunctionRecord> record =
          tensorflow::unwrap(ctx)->FindRecord(name);
    
      if (record == nullptr) {
        status->status = tensorflow::errors::NotFound(
            "Unable to find Function with name: ", name);
        return nullptr;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top