Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for length (0.21 sec)

  1. tensorflow/c/c_test.c

        return 1;
      }
    
      char file_name[100];
      time_t t = time(NULL);
      snprintf(file_name, sizeof(file_name), "test-%d-%ld.txt", getpid(), t);
    
      size_t length = 2 + strlen(path) + strlen(file_name);
      char* full_path = malloc(length);
      snprintf(full_path, length, "%s/%s", path, file_name);
    
      TF_WritableFileHandle* h;
      TF_Status* status = TF_NewStatus();
      TF_NewWritableFile(full_path, &h, status);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/abstract_operation.h

      std::vector<size_t> lengths;
      raw_strs.reserve(values.size());
      lengths.reserve(values.size());
      for (const auto& s : values) {
        raw_strs.emplace_back(s.data());
        lengths.emplace_back(s.size());
      }
      return SetAttrStringList(attr_name,
                               reinterpret_cast<const void**>(raw_strs.data()),
                               lengths.data(), values.size());
    }
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

                          const void* value, size_t length) {
      tensorflow::StringPiece s(static_cast<const char*>(value), length);
      desc->node_builder.Attr(attr_name, s);
    }
    
    void TF_SetAttrStringList(TF_OperationDescription* desc, const char* attr_name,
                              const void* const* values, const size_t* lengths,
                              int num_values) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.h

    // Returns the length (number of tensors) of the input argument `input_name`
    // found in the provided `op`.
    TF_CAPI_EXPORT extern int TFE_OpGetInputLength(TFE_Op* op,
                                                   const char* input_name,
                                                   TF_Status* status);
    
    // Returns the length (number of tensors) of the output argument `output_name`
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_TRUE(WriteToServer(path, 0, content_view.length(),
                                &gcs_file->gcs_client, status_));
      tf_gcs_filesystem::NewReadOnlyMemoryRegionFromFile(filesystem_, path.c_str(),
                                                         region, status_);
      ASSERT_TF_OK(status_);
      auto length = tf_read_only_memory_region::Length(region);
      ASSERT_EQ(length, content_view.length());
      auto data =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.h

    // keep.
    
    // `value` must point to a string of length `length` bytes.
    TF_CAPI_EXPORT extern void TF_SetAttrString(TF_OperationDescription* desc,
                                                const char* attr_name,
                                                const void* value, size_t length);
    // `values` and `lengths` each must have lengths `num_values`.
    // `values[i]` must point to a string of length `lengths[i]` bytes.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  7. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      const std::string merge_op("Add");
      TFE_OpSetAttrString(op.get(), "merge_op", merge_op.c_str(),
                          merge_op.length());
      const std::string final_op("Id");
      TFE_OpSetAttrString(op.get(), "final_op", final_op.c_str(),
                          final_op.length());
      TFE_OpSetAttrIntList(op.get(), "subdiv_offsets", nullptr, 0);
    
      TFE_OpAddInput(op.get(), input, status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  8. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

          seen[key] += 1
        # Remove this testsuite if it doesn't have anything in it any more
        if len(testsuite) == 0:  # pylint: disable=g-explicit-length-test
          r._elem.remove(testsuite._elem)
      if len(r) > 0:  # pylint: disable=g-explicit-length-test
        result += r
    
    # Insert the number of failures for each test to help identify flakes
    # need to clarify for shard
    for p in result._elem.xpath(".//error | .//failure"):
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      TF_Buffer* result = TF_NewBuffer();
      const std::string& value_str = *value;
      void* data = malloc(value_str.length());
      value_str.copy(static_cast<char*>(data), value_str.length(), 0);
      result->data = data;
      result->length = value_str.length();
      result->data_deallocator = [](void* data, size_t length) { free(data); };
      return result;
    }
    
    TF_Buffer* TF_CoordinationServiceGetKeyValue(const char* key, int64_t key_size,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  10. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          } else {
            // Generalize differing axis lengths to "variable"/"unknown".
            for (int axis_index = 0; axis_index < combined_shape.dims();
                 ++axis_index) {
              int64_t axis_length = combined_shape.dim_size(axis_index);
              if (axis_length != component_shape.dim_size(axis_index)) {
                axis_length = -1;
              }
              TF_RETURN_IF_ERROR(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
Back to top