Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for FunctionDef (0.2 sec)

  1. tensorflow/c/eager/graph_function.h

    namespace graph {
    using tensorflow::AbstractFunction;
    // Thin wrapper around a FunctionDef.
    class GraphFunction : public AbstractFunction {
     public:
      explicit GraphFunction(FunctionDef fdef);
      ~GraphFunction() override;
    
      // GraphFunction maybe stay alive for the duration of the returned
      // FunctionDef.
      Status GetFunctionDef(const FunctionDef** fdef) override;
    
      // Returns a shared reference to the wrapped function.
    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

      // Returns which subclass is this instance of.
      AbstractFunctionKind getKind() const { return kind_; }
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual Status GetFunctionDef(const FunctionDef**) = 0;
    
      // Returns a shared reference to the wrapped function.
      virtual absl::StatusOr<core::RefCountPtr<FunctionRecord>>
      GetFunctionRecord() = 0;
    
     private:
      const AbstractFunctionKind kind_;
    };
    
    using AbstractFunctionPtr =
    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

    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/eager/abstract_op_attrs.h

     public:
      // Returns which subclass is this instance of.
      AbstractOpAttrsKind getKind() const { return kind_; }
      virtual ~AbstractOpAttrs() = default;
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual void GetNameAttrList(
          tensorflow::NameAttrList* name_and_attrs) const = 0;
    
      virtual bool GetInt(absl::string_view, int64_t* result) const = 0;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed May 26 22:20:27 GMT 2021
    - 2K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function.cc

    TF_Function* TF_FunctionImportFunctionDef(const void* proto, size_t proto_len,
                                              TF_Status* status) {
      tensorflow::FunctionDef fdef;
      bool success = fdef.ParseFromArray(proto, proto_len);
      if (!success) {
        status->status = InvalidArgument(
            "Invalid FunctionDef given to TF_FunctionImportFunctionDef");
        return nullptr;
      }
    
      TF_Function* func = new TF_Function();
    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)
  6. tensorflow/c/eager/immediate_execution_context.h

      // Block until all pending nodes are finished.
      virtual Status AsyncWait() = 0;
    
      // Add a function (serialized FunctionDef protocol buffer) so that it can
      // be executed as an op. Return error if the function with the same name
      // already exists.
      virtual Status AddFunctionDef(const FunctionDef& fdef) = 0;
    
      // Notifies about the function removal.
      virtual Status AddRemoveFunctionNotifier(const string& func,
    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/c_api_function_test.cc

      }
      return v;
    }
    
    // Specification for an expected edge.
    // src is either:
    // - input name (as it appears in FunctionDef)
    // - name of output tensor (in nested "add:z:0" format)
    // dst is either:
    // - output name (as it appears in FunctionDef)
    // - <name_of_node>:<index_of_this_input_into_node> (this looks the same as
    //      output tensor naming, but it the index is actually an input index)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  8. tensorflow/c/c_api_experimental.cc

    //
    // If `mutate_proto_func` is non-NULL, run it over each FunctionDef proto,
    // before creating a TF_Function out of the possibly mutated proto.
    static std::vector<UniqueFuncPtr> CreateFunctionsFromTextProto(
        const char* text_proto,
        std::function<void(FunctionDef*)>* mutate_proto_func, TF_Status* status) {
      tensorflow::GraphDef gdef;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/abstract_context.h

      // available to be called/referenced by its name in this context.
      virtual Status RegisterFunction(AbstractFunction*) = 0;
      // Remove a function. 'func' argument is the name of a previously added
      // FunctionDef. The name is in fdef.signature.name.
      virtual Status RemoveFunction(const string& func) = 0;
    
     private:
      const AbstractContextKind kind_;
    };
    
    namespace internal {
    struct AbstractContextDeleter {
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_distributed_test.cc

    #include "tensorflow/core/protobuf/tensorflow_server.pb.h"
    
    namespace {
    
    using ::tensorflow::string;
    
    // Add the values of three variables on three different tasks.
    string AddVariablesFunction() {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          "    signature {"
          "      name: 'AddVariablesFunction'"
          "      input_arg {"
          "        name: 'var'"
          "        type: DT_RESOURCE"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top