Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for TensorHandleConvertible (0.26 sec)

  1. tensorflow/c/experimental/saved_model/core/revived_types/tensorhandle_convertible.h

    class TensorHandleConvertible {
     public:
      explicit TensorHandleConvertible(ImmediateTensorHandlePtr handle)
          : handle_(std::move(handle)) {}
    
      ImmediateExecutionTensorHandle* handle() { return handle_.get(); }
    
      // TensorHandleConvertible is movable, but not copyable.
      TensorHandleConvertible(TensorHandleConvertible&& other) = default;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/tf_concrete_function_loading_test.cc

     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    };
    
    class DummyCapture : public TensorHandleConvertible {
     public:
      DummyCapture(ImmediateExecutionContext* ctx, int8_t value)
          : TensorHandleConvertible(
                testing::CreateTensorHandle(ctx, DT_FLOAT, {2, 4}, value)) {}
    };
    
    FunctionDef FuncDefWithNumInputsOutputs(int num_inputs, int num_outputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/revived_types/constant.h

    // and offer a subclass of TensorHandleConvertible. Note that similar to
    // the python's eager mode logic, we bypass calling the "Const" op:
    // https://github.com/tensorflow/tensorflow/blob/1c064ab76064c58e54261b805027474885a1534d/tensorflow/python/framework/constant_op.py#L301
    class Constant : public TensorHandleConvertible {
     public:
      static Status Create(ImmediateExecutionContext* ctx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/revived_types/asset.h

    #include "tensorflow/c/tensor_interface.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    
    namespace tensorflow {
    
    class Asset : public TensorHandleConvertible {
     public:
      static Status Create(ImmediateExecutionContext* ctx,
                           const std::string& saved_model_dir,
                           const std::string& asset_filename,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 18 21:29:39 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc

                                       TFConcreteFunction* initialize,
                                       TFConcreteFunction* destroy_resource,
                                       ImmediateTensorHandlePtr resource_handle)
        : TensorHandleConvertible(std::move(resource_handle)),
          device_(device),
          create_resource_(create_resource),
          initialize_(initialize),
          destroy_resource_(destroy_resource) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.h

    // "_destroy_resource" functions:
    // https://github.com/tensorflow/tensorflow/blob/139ba9c5284799beafdd1d7f895127cf00e7c48f/tensorflow/python/training/tracking/tracking.py#L262-L281
    class RestoredResource : TensorHandleConvertible {
     public:
      // Note(bmzhao): RestoredResource stores non-owning pointers to its associated
      // functions because SavedModel internally owns all functions and objects in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 23 04:49:47 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/revived_types/constant.cc

    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    
    Constant::Constant(ImmediateTensorHandlePtr handle)
        : TensorHandleConvertible(std::move(handle)) {}
    
    Status Constant::Create(ImmediateExecutionContext* ctx,
                            AbstractTensorInterface* tensor,
                            std::unique_ptr<Constant>* output) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 23 19:44:24 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/revived_types/asset.cc

    #include "tensorflow/cc/saved_model/constants.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/path.h"
    
    namespace tensorflow {
    
    Asset::Asset(ImmediateTensorHandlePtr handle)
        : TensorHandleConvertible(std::move(handle)) {}
    
    Status Asset::Create(ImmediateExecutionContext* ctx,
                         const std::string& saved_model_dir,
                         const std::string& asset_filename,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 20:11:48 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/revived_types/variable.h

    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/protobuf/saved_object_graph.pb.h"
    
    namespace tensorflow {
    
    class Variable : public TensorHandleConvertible {
     public:
      // Creates an uninitialized resource variable. Note that a caller must
      // call "assign" to associate a value with the variable.
      static Status CreateUninitialized(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/revived_types/variable.cc

    namespace tensorflow {
    
    Variable::Variable(ImmediateExecutionContext* ctx, DataType dtype,
                       TensorShape shape, absl::optional<std::string> name,
                       ImmediateTensorHandlePtr handle)
        : TensorHandleConvertible(std::move(handle)),
          name_(name.has_value() ? *name : "Variable"),
          dtype_(dtype),
          shape_(shape),
          ctx_(ctx) {}
    
    Variable::~Variable() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 08 20:55:40 UTC 2020
    - 4.4K bytes
    - Viewed (0)
Back to top