Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for ConcreteFunction (0.18 sec)

  1. tensorflow/cc/saved_model/experimental/public/concrete_function.h

    namespace experimental {
    namespace cc {
    
    // ConcreteFunction is an executable "function" loaded from a SavedModelAPI.
    class ConcreteFunction final {
     public:
      // TODO(bmzhao): Adding ConcreteFunction::Run in subsequent CL, since
      // it depends on tensorflow::cc::Tensor and tensorflow::cc::TensorHandle
    
      // Returns FunctionMetadata associated with this ConcreteFunction.
      const FunctionMetadata* GetFunctionMetadata();
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 12 19:37:48 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/experimental/public/concrete_function_list.h

    namespace tensorflow {
    namespace experimental {
    namespace cc {
    
    // ConcreteFunctionList helps convert an opaque pointer to an array of
    // ConcreteFunction pointers to a std::vector.
    class ConcreteFunctionList {
     public:
      // Converts this object to a std::vector<ConcreteFunction*>
      std::vector<ConcreteFunction*> ToVector();
    
     private:
      friend class SavedModelAPI;
      // Wraps a TF_ConcreteFunctionList. Takes ownership of list.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 12 19:37:48 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/cc/experimental/libtf/function.h

                                                TaggedValue) const;
    
     private:
      struct ConcreteFunction {
        tensorflow::AbstractFunctionPtr trace;
        TaggedValue input_signature;
        TaggedValue output_signature;
      };
      tensorflow::StatusOr<ConcreteFunction> GetConcreteFunction(TaggedValue) const;
      std::vector<ConcreteFunction> concrete_fns_;
    };
    
    }  // namespace libtf
    }  // namespace tf
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/internal/concrete_function_type.h

    // It doesn't make sense to wrap tensorflow::ConcreteFunction* in a separate
    // struct, since the lifetime of the struct and the raw pointer it wraps would
    // be different. Therefore TF_ConcreteFunction* = tensorflow::ConcreteFunction*.
    typedef struct TF_ConcreteFunction TF_ConcreteFunction;
    
    namespace tensorflow {
    
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::ConcreteFunction, TF_ConcreteFunction)
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 29 01:58:17 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/experimental/public/saved_model_api.h

      // Returns:
      //  If status is not OK, returns nullptr. Otherwise, returns a
      //  tensorflow::cc::ConcreteFunction pointer. The lifetime of this pointer
      //  is bound to SavedModelAPI it was loaded from.
      ConcreteFunction* GetConcreteFunction(const std::string& function_path,
                                            Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 04 00:45:47 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/concrete_function.h

    // TFRT integration with TF Serving. Do not add more virtual implementations of
    // this class. Eventually we want to remove this virtual base class indirection
    // and have only a single implementation.
    class ConcreteFunction {
     public:
      virtual ~ConcreteFunction() = default;
    
      // This method returns the "Call" Op used to execute the function.
      virtual Status MakeCallOp(absl::Span<AbstractTensorHandle* const> inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 29 15:50:58 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.h

    class TFSavedModelAPI : public SavedModelAPI {
     public:
      Status GetFunction(const std::string& function_path,
                         ConcreteFunction** function) override;
    
      Status GetFunctions(
          int node_id,
          absl::flat_hash_map<std::string, ConcreteFunction*>* functions) override;
    
      Status GetSignatureDefFunction(const std::string& signature_def_key,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/saved_model_api.h

      virtual Status GetFunction(const std::string& function_path,
                                 ConcreteFunction** function) = 0;
    
      // Retrieve a list of child functions from a SavedModel given a starting node.
      // 0 is the root node.
      virtual Status GetFunctions(
          int node_id,
          absl::flat_hash_map<std::string, ConcreteFunction*>* functions) = 0;
    
      // Retrieve a SignatureDefFunction from a SavedModel, using the key of the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 04 17:05:58 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function.h

    #include "tensorflow/core/framework/function.pb.h"
    #include "tensorflow/core/protobuf/saved_object_graph.pb.h"
    
    namespace tensorflow {
    
    // TF Eager Runtime-based implementation of a "ConcreteFunction" loaded from a
    // saved model.
    class TFConcreteFunction : public ConcreteFunction {
     public:
      // Factory function for creating a TFConcreteFunction.
      //
      // Params:
      //  function_def - The function_def associated with the created
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/public/README.md

    # TensorFlow Saved Model C API
    
    ## Small ConcreteFunction Example
    
    The following example loads a saved model from `"/path/to/model"` and
    executes a function `f` taking no arguments and returning one single
    value (error checking is omitted for simplicity):
    
    ```c
    TF_Status* status = TF_NewStatus();
    TFE_ContextOptions* ctx_options = TFE_NewContextOptions();
    TFE_Context* ctx = TFE_NewContext(ctx_options, status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 16 23:02:56 UTC 2020
    - 904 bytes
    - Viewed (0)
Back to top