Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TensorInterface (0.16 sec)

  1. tensorflow/c/tf_tensor.cc

        return true;
      }
      return false;
    }
    
    std::string TensorInterface::SummarizeValue() const {
      return tensor_.SummarizeValue(/*max_entries=*/3, /*print_v2=*/true);
    }
    
    DataType TensorInterface::Type() const { return tensor_.dtype(); }
    
    int TensorInterface::NumDims() const { return tensor_.dims(); }
    
    int64_t TensorInterface::Dim(int dim_index) const {
      return static_cast<int64_t>(tensor_.dim_size(dim_index));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor_internal.h

    // a different Allocator as `arg`.
    void deallocate_buffer(void* data, size_t len, void* arg);
    
    class TensorInterface : public AbstractTensorInterface {
     public:
      TensorInterface() {}
      explicit TensorInterface(tensorflow::Tensor t) : tensor_(std::move(t)) {}
      ~TensorInterface() override {}
    
      void Release() override;
    
      DataType Type() const override;
      int NumDims() const override;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/saved_model_utils.cc

      tensorflow::Tensor tensor;
      bool parse_result = tensor.FromProto(proto);
      if (!parse_result) {
        return errors::Internal("Failed to parse tensor from tensorproto");
      }
    
      TensorInterface tensor_interface(std::move(tensor));
      return Constant::Create(ctx, &tensor_interface, output);
    }
    
    // This follows the python variable restoration logic:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 12 19:17:46 UTC 2023
    - 24K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.cc

    void TFE_OpSetAttrTensor(TFE_Op* op, const char* attr_name, TF_Tensor* tensor,
                             TF_Status* status) {
      tensorflow::Tensor t;
      status->status = TF_TensorToTensor(tensor, &t);
      tensorflow::TensorInterface interface(t);
      status->status = tensorflow::unwrap(op)->SetAttrTensor(attr_name, &interface);
    }
    
    void TFE_OpSetAttrStringList(TFE_Op* op, const char* attr_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

      tensorflow::TensorProto from_tensor_proto;
      status->status = BufferToMessage(from, &from_tensor_proto);
      if (!status->status.ok()) {
        return;
      }
      status->status =
          tensorflow::down_cast<tensorflow::TensorInterface*>(to->tensor)
              ->FromProto(from_tensor_proto);
    }
    // --------------------------------------------------------------------------
    
    TF_DeprecatedSession* TF_NewDeprecatedSession(const TF_SessionOptions* opt,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top