Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Case (0.17 sec)

  1. tensorflow/c/c_api.cc

        SINGLE_CASE(kF, TF_ATTR_FLOAT, -1);
        SINGLE_CASE(kB, TF_ATTR_BOOL, -1);
        SINGLE_CASE(kType, TF_ATTR_TYPE, -1);
        SINGLE_CASE(kShape, TF_ATTR_SHAPE,
                    attr->shape().unknown_rank() ? -1 : attr->shape().dim_size());
        SINGLE_CASE(kTensor, TF_ATTR_TENSOR, -1);
    #undef SINGLE_CASE
    
        case tensorflow::AttrValue::kList:
          metadata.is_list = 1;
          metadata.list_size = 0;
    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/eager/dlpack.cc

      switch (data_type) {
        case TF_DataType::TF_BOOL:
          dtype.code = DLDataTypeCode::kDLBool;
          break;
        case TF_DataType::TF_HALF:
        case TF_DataType::TF_FLOAT:
        case TF_DataType::TF_DOUBLE:
          dtype.code = DLDataTypeCode::kDLFloat;
          break;
        case TF_DataType::TF_INT8:
        case TF_DataType::TF_INT16:
        case TF_DataType::TF_INT32:
        case TF_DataType::TF_INT64:
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

           ++device_index) {
        DeviceThread* device_thread = device_threads_[device_index].get();
        per_device_output_tensors.push_back(device_thread->Join(status));
        // We will run every Join even if there are bad statuses in case the user
        // wants to recover and continue running ops on the parallel device (which
        // would otherwise deadlock).
        if (TF_GetCode(status) != TF_OK &&
            (first_bad_status == nullptr
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                           const char* dst, TF_Status* status) {
      // If target is a directory return TF_FAILED_PRECONDITION.
      // Target might be missing, so don't error in that case.
      struct stat st;
      if (stat(dst, &st) != 0) {
        if (errno != ENOENT) {
          TF_SetStatusFromIOError(status, errno, dst);
          return;
        }
      } else if (S_ISDIR(st.st_mode)) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.cc

      // scheduled on that same threadpool, causing a deadlock in cases where the
      // caller of event_mgr->ThenExecute() blocks on the completion of the callback
      // (as in the case of ConstOp kernel creation on GPU, which involves copying a
      // CPU tensor to GPU).
      // Setting a larger thread pool does not help with the Swift caller, as we use
    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)
  6. tensorflow/c/eager/c_api.cc

      switch (default_value.value_case()) {
        case tensorflow::AttrValue::kS: {
          const string& v = default_value.s();
          TFE_OpSetAttrString(op, attr_name, v.data(), v.size());
          break;
        }
        case tensorflow::AttrValue::kI:
          TFE_OpSetAttrInt(op, attr_name, static_cast<int64_t>(default_value.i()));
          break;
        case tensorflow::AttrValue::kF:
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top