Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetTensor (0.05 sec)

  1. tensorflow/c/checkpoint_reader.cc

      if (reader_ != nullptr) return reader_->DebugString();
      return v2_reader_->DebugString();
    }
    
    void CheckpointReader::GetTensor(
        const string& name, std::unique_ptr<tensorflow::Tensor>* out_tensor,
        TF_Status* out_status) const {
      absl::Status status;
      if (reader_ != nullptr) {
        status = reader_->GetTensor(name, out_tensor);
      } else {
        tensorflow::DataType dtype;
        tensorflow::TensorShape shape;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. tensorflow/c/checkpoint_reader.h

      const TensorSliceReader::VarToDataTypeMap& GetVariableToDataTypeMap() const;
    
      // Attempts to look up the tensor named "name" and stores the found result in
      // "out_tensor".
      void GetTensor(const string& name,
                     std::unique_ptr<tensorflow::Tensor>* out_tensor,
                     TF_Status* out_status) const;
    
     private:
      // Uses "v2_reader_" to build "var name -> shape" and "var name -> data type"
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

    }
    
    TF_Tensor* TF_CheckpointReaderGetTensor(TF_CheckpointReader* reader,
                                            const char* name, TF_Status* status) {
      std::unique_ptr<tensorflow::Tensor> tensor;
      reader->GetTensor(name, &tensor, status);
      if (!status->status.ok()) return nullptr;
      return tensorflow::TF_TensorFromTensor(*tensor, &status->status);
    }
    
    void TF_CheckpointReaderGetVariableShape(TF_CheckpointReader* reader,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
Back to top