Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,032 for strides (0.19 sec)

  1. tensorflow/c/eager/dlpack_test.cc

      dltensor_in->dtype = {kDLFloat, 32, 1};
      dltensor_in->shape = shape.data();
      dltensor_in->strides = strides.data();
      TFE_TensorHandle* handle = TFE_HandleFromDLPack(&dlm_in, status, ctx);
      ASSERT_NE(handle, nullptr)
          << TF_Message(status) << " (shape=[" << absl::StrJoin(shape, ",")
          << "], strides=[" << absl::StrJoin(strides, ",") << "])";
    
      auto* dlm_out =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/dlpack.cc

      // 1) nullptr indicates tensor is compact and row-majored.
      // 2) fill in the strides array as the real case for compact row-major data.
      // Here we choose option 2, since some frameworks didn't handle the strides
      // argument properly.
      dlm_tensor->dl_tensor.strides = stride_arr->data();
    
      dlm_tensor->dl_tensor.byte_offset =
          0;  // TF doesn't handle the strides and byte_offsets here
      return static_cast<void*>(dlm_tensor);
    }
    
    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/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      xla::Shape shape = xla::ShapeUtil::MakeShape(xla::S32, {1});
    
      auto buffer = c_api_client->pjrt_c_client()->client->BufferFromHostBuffer(
          data.data(), shape.element_type(), shape.dimensions(),
          /*byte_strides=*/std::nullopt,
          xla::PjRtClient::HostBufferSemantics::kImmutableOnlyDuringCall, nullptr,
          c_api_client->pjrt_c_client()->client->addressable_devices()[0]);
      CHECK_OK(buffer.status());
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test.cc

      TF_DeleteTensor(tensor);
      TFE_DeleteTensorHandle(tensor_handle);
    
      std::vector<int64_t> values(4, 1);
      TFE_OpSetAttrIntList(op, "ksize", values.data(), values.size());
      TFE_OpSetAttrIntList(op, "strides", values.data(), values.size());
    
      const int BUFFER_SIZE = 10;
      char buffer[BUFFER_SIZE];
      std::strncpy(buffer, "VALID", BUFFER_SIZE);
      TFE_OpSetAttrString(op, "padding", buffer, std::strlen(buffer));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/util/concurrent/Striped.java

       * reentrant.
       *
       * @param stripes the minimum number of stripes (locks) required
       * @return a new {@code Striped<Lock>}
       */
      public static Striped<Lock> lazyWeakLock(int stripes) {
        return lazy(stripes, () -> new ReentrantLock(false));
      }
    
      private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) {
        return stripes < LARGE_LAZY_CUTOFF
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  6. guava/src/com/google/common/base/Strings.java

     *
     * @author Kevin Bourrillion
     * @since 3.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Strings {
      private Strings() {}
    
      /**
       * Returns the given string if it is non-null; the empty string otherwise.
       *
       * @param string the string to test and possibly return
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Strings.java

    import org.slf4j.LoggerFactory;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    
    
    /**
     * @author mbechler
     *
     */
    public final class Strings {
    
        private static final Logger log = LoggerFactory.getLogger(Strings.class);
    
        private static final Charset UNI_ENCODING = Charset.forName("UTF-16LE");
        private static final Charset ASCII_ENCODING = Charset.forName("US-ASCII");
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Strings.java

     *
     * @author Kevin Bourrillion
     * @since 3.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Strings {
      private Strings() {}
    
      /**
       * Returns the given string if it is non-null; the empty string otherwise.
       *
       * @param string the string to test and possibly return
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/Strings.java

     */
    package jcifs.tests;
    
    
    /**
     * @author mbechler
     *
     */
    public class Strings {
    
        /**
         * from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/quickbrown.txt
         */
        static final String[] UNICODE_STRINGS = new String[] {
            "da - jordbær fløde på", // x
            "de - Zwölf Boxkämpfer", // x
            "el - Γαζέες καὶ μυρτιὲς", // x
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2K bytes
    - Viewed (0)
  10. android-test/src/main/res/values/strings.xml

    Yuri Schimke <******@****.***> 1563315320 +0100
    XML
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jul 16 22:15:20 GMT 2019
    - 73 bytes
    - Viewed (0)
Back to top