Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Othman (0.22 sec)

  1. tensorflow/c/c_api.cc

                                         " but actual rank is ", rank);
        return;
      }
    
      if (num_dims == 0) {
        // Output shape is a scalar.
        return;
      }
    
      // Rank is greater than 0, so fill in the values, if known, and
      // -1 for unknown values.
      for (int i = 0; i < num_dims; ++i) {
        auto dim = ic->Dim(shape, i);
        int64_t value = -1;
        if (ic->ValueKnown(dim)) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function.cc

          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
            return InvalidArgument("TF_Output ", node->name(), ":", idx,
                                   " appears more than once in the input list");
          }
          indices.push_back(idx);
        }
      }
      return absl::OkStatus();
    }
    
    // Converts `noutputs` and `outputs` into `outputs_tensors` and does various
    // checks while doing so.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/c_api_test.cc

      EXPECT_TRUE(absl::StrContains(s, expected))
          << "'" << s << "' does not contain '" << expected << "'";
    }
    
    // Returns the GPU device name if there is one (with arbitrary tie breaking if
    // there are more than one), or "" otherwise.
    string GPUDeviceName(TF_Session* session) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_Status* s = status.get();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top