Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TensorInterface (0.13 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/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)
  4. 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