Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for FunctionMetadata (0.21 sec)

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

      static FunctionMetadata* wrap(TF_FunctionMetadata* p) {
        return reinterpret_cast<FunctionMetadata*>(p);
      }
      static TF_FunctionMetadata* unwrap(FunctionMetadata* p) {
        return reinterpret_cast<TF_FunctionMetadata*>(p);
      }
    };
    
    }  // namespace cc
    }  // namespace experimental
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 12 19:37:48 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

    // the function body.
    std::optional<llvm::StringMap<FunctionMetadata>> GetFunctionMetadatas(
        func::FuncOp func_op) {
      llvm::StringMap<FunctionMetadata> metadatas;
      WalkResult result = func_op.getBody().walk([&](Operation *op) {
        std::string op_host = GetHost(op);
        FunctionMetadata &func_metadata = metadatas[op_host];
        func_metadata.original_name = func_op.getName();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function.h

                           FunctionMetadata metadata,
                           ImmediateExecutionContext* ctx,
                           std::unique_ptr<TFConcreteFunction>* out);
    
      // This method returns the "Call" Op used to execute the function.
      Status MakeCallOp(absl::Span<AbstractTensorHandle* const> inputs,
                        ImmediateOpPtr* out) const override;
    
      const FunctionMetadata& GetFunctionMetadata() const override;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/experimental/public/concrete_function.h

     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:
      friend class SavedModelAPI;
      friend class ConcreteFunctionList;
    
      // TODO(bmzhao): Consider adding a macro for wrapping/unwrapping
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 12 19:37:48 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/revived_types/tf_concrete_function.cc

    TFConcreteFunction::TFConcreteFunction(std::unique_ptr<FlatTensorFunction> func,
                                           FunctionMetadata metadata)
        : func_(std::move(func)), metadata_(std::move(metadata)) {}
    
    Status TFConcreteFunction::Create(
        const FunctionDef* function_def,
        std::vector<ImmediateExecutionTensorHandle*> captures,
        FunctionMetadata metadata, ImmediateExecutionContext* ctx,
        std::unique_ptr<TFConcreteFunction>* out) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 06:55:27 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/function_metadata.h

    #ifndef TENSORFLOW_C_EXPERIMENTAL_SAVED_MODEL_CORE_FUNCTION_METADATA_H_
    #define TENSORFLOW_C_EXPERIMENTAL_SAVED_MODEL_CORE_FUNCTION_METADATA_H_
    
    namespace tensorflow {
    
    class FunctionMetadata {
      // TODO(bmzhao): Fill in with fields as necessary
    };
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 20 17:00:01 UTC 2020
    - 1023 bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/internal/function_metadata_type.h

    #include "tensorflow/c/experimental/saved_model/core/function_metadata.h"
    
    typedef struct TF_FunctionMetadata TF_FunctionMetadata;
    
    namespace tensorflow {
    
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::FunctionMetadata, TF_FunctionMetadata)
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 29 01:58:17 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

          compute_fn, compute_fn_inputs.data(), compute_fn_inputs.size(), status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      // TODO(bmzhao): Finish API on FunctionMetadata args, so we know how many
      // inputs + outputs a function has.
      TFE_TensorHandle* compute_fn_outputs[1] = {nullptr};
      int num_retvals = 1;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/internal/concrete_function.cc

    #include "tensorflow/core/platform/status.h"
    
    extern "C" {
    
    TF_FunctionMetadata* TF_ConcreteFunctionGetMetadata(TF_ConcreteFunction* func) {
      return tensorflow::wrap(const_cast<tensorflow::FunctionMetadata*>(
          &tensorflow::unwrap(func)->GetFunctionMetadata()));
    }
    
    TFE_Op* TF_ConcreteFunctionMakeCallOp(TF_ConcreteFunction* func,
                                          TFE_TensorHandle** inputs, int num_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 06:55:27 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/public/concrete_function.h

    // TODO(bmzhao): Work together w/srbs@ to make sure this composes w/the
    // C++ Unified Eager/Graph API's AbstractFunction
    typedef struct TF_ConcreteFunction TF_ConcreteFunction;
    
    // Returns FunctionMetadata associated with `func`. Metadata's lifetime is
    // bound to `func`, which is bound to the TF_SavedModel it was loaded from.
    TF_CAPI_EXPORT extern TF_FunctionMetadata* TF_ConcreteFunctionGetMetadata(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 06:55:27 UTC 2020
    - 2.7K bytes
    - Viewed (0)
Back to top