Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetVariableToShapeMap (0.23 sec)

  1. tensorflow/c/checkpoint_reader.cc

        if (!reader_->status().ok()) {
          tsl::Set_TF_Status_from_Status(status, reader_->status());
          return;
        }
        var_to_shape_map_.reset(
            new TensorSliceReader::VarToShapeMap(reader_->GetVariableToShapeMap()));
        var_to_data_type_map_.reset(new TensorSliceReader::VarToDataTypeMap(
            reader_->GetVariableToDataTypeMap()));
      }
    }
    
    bool CheckpointReader::HasTensor(const string& name) const {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/c/checkpoint_reader.h

      const string DebugString() const;
    
      // Returns a map from variable names to their shapes.  Slices of a partitioned
      // tensor are combined into a single entry.
      const TensorSliceReader::VarToShapeMap& GetVariableToShapeMap() const;
    
      // Returns a map from variable names to their data types.  Slices of a
      // partitioned tensor are combined into a single entry.
      const TensorSliceReader::VarToDataTypeMap& GetVariableToDataTypeMap() const;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

                                             const char* name, int64_t* dims,
                                             int num_dims, TF_Status* status) {
      const auto& shape = reader->GetVariableToShapeMap().at(name);
      int rank = shape.dims();
      if (num_dims != rank) {
        status->status = InvalidArgument("Expected rank is ", num_dims,
                                         " but actual rank is ", rank);
        return;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
Back to top