Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,379 for sizeof (0.18 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    #include "tensorflow/c/tf_status.h"
    
    // Implementation of a filesystem for POSIX environments.
    // This filesystem will support `file://` and empty (local) URI schemes.
    
    static void* plugin_memory_allocate(size_t size) { return calloc(1, size); }
    static void plugin_memory_free(void* ptr) { free(ptr); }
    
    // SECTION 1. Implementation for `TF_RandomAccessFile`
    // ----------------------------------------------------------------------------
    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)
  2. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    @@ -1609,7 +1609,7 @@ writezone(const char *const name, const char *const string)
     		}
     #define DO(field)	((void) fwrite(tzh.field, sizeof tzh.field, 1, fp))
     		tzh = tzh0;
    -		(void) strncpy(tzh.tzh_magic, TZ_MAGIC, sizeof tzh.tzh_magic);
    +		memcpy(tzh.tzh_magic, TZ_MAGIC, sizeof tzh.tzh_magic);
     		tzh.tzh_version[0] = ZIC_VERSION;
     		convert(eitol(thistypecnt), tzh.tzh_ttisgmtcnt);
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    static std::unique_ptr<const T> CopyToCore(const T* plugin_ops,
                                               size_t plugin_size) {
      if (plugin_ops == nullptr) return nullptr;
    
      size_t copy_size = std::min(plugin_size, sizeof(T));
      auto core_ops = std::make_unique<T>();
      memset(core_ops.get(), 0, sizeof(T));
      memcpy(core_ops.get(), plugin_ops, copy_size);
      return core_ops;
    }
    
    // Registers one filesystem from the plugin.
    //
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue1435.go

    //     pthread_mutex_lock(&mu);
    //     done = all_done;
    //     pthread_mutex_unlock(&mu);
    //   }
    //   return NULL;
    // }
    //
    // void trial(int argc) {
    //   int i;
    //   nts = argc;
    //   t = calloc(nts, sizeof(pthread_t));
    //   pthread_mutex_init(&mu, NULL);
    //   for (i = 0; i < nts; i++) {
    //     pthread_create(&t[i], NULL, aFn, NULL);
    //   }
    // }
    //
    // void cleanup(void) {
    //   int i;
    //   pthread_mutex_lock(&mu);
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.h

          const ParallelDevice& parallel_device,
          std::vector<TensorHandlePtr> components, absl::Span<const int64_t> shape,
          TF_Status* status);
    
      size_t num_tensors() const { return tensors_.size(); }
      TFE_TensorHandle* tensor(size_t index) const { return tensors_[index].get(); }
    
      // If the `shape` argument to `FromTensorHandles` is specified, returns that.
      //
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                                (systemHelper.getCurrentTimeAsLong() - execTime), MemoryUtil.byteCountToDisplaySize(docList.getContentSize()),
                                MemoryUtil.getMemoryUsageLog());
                    } else {
                        logger.info("Sent {}  docs (Doc:{send {}ms}, {})", docList.size(), (systemHelper.getCurrentTimeAsLong() - execTime),
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.6K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_remote_test_util.cc

      TF_Tensor* t = TFE_TensorHandleResolve(retval_task0, status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteTensorHandle(retval_task0);
      float product[4] = {0};
      EXPECT_EQ(sizeof(product), TF_TensorByteSize(t));
      memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t));
      TF_DeleteTensor(t);
      EXPECT_EQ(7, product[0]);
      EXPECT_EQ(10, product[1]);
      EXPECT_EQ(15, product[2]);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    struct_, union_, or enum_, as in C.struct_stat.
    
    The size of any C type T is available as C.sizeof_T, as in
    C.sizeof_struct_stat.
    
    A C function may be declared in the Go file with a parameter type of
    the special name _GoString_. This function may be called with an
    ordinary Go string value. The string length, and a pointer to the
    string contents, may be accessed by calling the C functions
    
    	size_t _GoStringLen(_GoString_ s);
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_cluster_test.cc

      std::unique_ptr<float[]> actual_values(new float[expected_values.size()]);
      EXPECT_EQ(sizeof(float) * expected_values.size(), TF_TensorByteSize(t));
      memcpy(actual_values.get(), TF_TensorData(t), TF_TensorByteSize(t));
      TF_DeleteTensor(t);
    
      for (int i = 0; i < expected_values.size(); i++) {
        EXPECT_EQ(expected_values[i], actual_values[i])
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    	// the compiler is going to pad it by one (see issue 9401).
    	// We can't permit that, because then the size of the Go
    	// struct will not be the same as the size of the C struct.
    	// Our only option in such a case is to remove the field,
    	// which means that it cannot be referenced from Go.
    	for off > 0 && sizes[len(sizes)-1] == 0 {
    		n := len(sizes)
    		fld = fld[0 : n-1]
    		sizes = sizes[0 : n-1]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top