Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 3,659 for casts (0.92 sec)

  1. tensorflow/c/eager/c_api_experimental.cc

    #include "tensorflow/core/lib/monitoring/counter.h"
    #include "tensorflow/core/lib/monitoring/gauge.h"
    #include "tensorflow/core/lib/monitoring/sampler.h"
    #include "tensorflow/core/platform/casts.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/mutex.h"
    #include "tensorflow/core/platform/strcat.h"
    #include "tsl/framework/cancellation.h"
    
    using tensorflow::string;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/IntsTest.java

    /**
     * Unit test for {@link Ints}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("cast") // redundant casts are intentional and harmless
    public class IntsTest extends TestCase {
      private static final int[] EMPTY = {};
      private static final int[] ARRAY1 = {(int) 1};
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  3. tensorflow/cc/experimental/libtf/object.h

    }
    // TODO(unknown): fully populate
    
    /// @brief Casts a handle to type `T`
    ///
    /// @param handle The handle to cast.
    /// @tparam T The target handle type.
    /// @exception InvalidArgument Raises error if the underlying TaggedValue type
    /// of `handle` is not equivalent to `T`.
    template <class T>
    tensorflow::StatusOr<T> Cast(Handle handle) {
      if (handle.value_.type() == TypeToTaggedType<T>() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

        // Get the defining Op, skipping over casts.
        auto get_defining_op = [](Value value) {
          while (auto cast_op =
                     llvm::dyn_cast_or_null<CastOp>(value.getDefiningOp())) {
            // Consider cast compatibility in case
            //    %cast = "tf.Cast"(%0) : (tensor<2xi64>) -> tensor<2xf32>
            // is skipped.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        if (elements instanceof ImmutableSortedMultiset) {
          @SuppressWarnings("unchecked") // immutable collections are always safe for covariant casts
          ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) elements;
          if (comparator.equals(multiset.comparator())) {
            if (multiset.isPartialView()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/IntsTest.java

    /**
     * Unit test for {@link Ints}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("cast") // redundant casts are intentional and harmless
    public class IntsTest extends TestCase {
      private static final int[] EMPTY = {};
      private static final int[] ARRAY1 = {(int) 1};
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    // Casts the `target` type to a quantized type by using the quantization
    // parameters from the type in the `source` type attribute.
    // Examples:
    //   f32 -> !quant.uniform<i8:f32, 1.0>
    //   tensor<4xf32> -> tensor<4x!quant.uniform<i8:f32, 1.0>>
    // The result is wrapped by a type attribute. Returns nullptr if the cast
    // isn't valid.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

       * @since 7.0 (source-compatible since 2.0)
       */
      // This the best we could do to get copyOfEnumSet to compile in the mainline.
      // The suppression also covers the cast to E[], discussed below.
      // In the backport, we don't have those cases and thus don't need this suppression.
      // We keep it to minimize diffs.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/expr.go

    	n.SetOp(op)
    	switch n.Op() {
    	case ir.OCONVNOP:
    		if t.Kind() == n.Type().Kind() {
    			switch t.Kind() {
    			case types.TFLOAT32, types.TFLOAT64, types.TCOMPLEX64, types.TCOMPLEX128:
    				// Floating point casts imply rounding and
    				// so the conversion must be kept.
    				n.SetOp(ir.OCONV)
    			}
    		}
    
    	// do not convert to []byte literal. See CL 125796.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Longs.java

       */
      public static byte[] toByteArray(long value) {
        // Note that this code needs to stay compatible with GWT, which has known
        // bugs when narrowing byte casts of long values occur.
        byte[] result = new byte[8];
        for (int i = 7; i >= 0; i--) {
          result[i] = (byte) (value & 0xffL);
          value >>= 8;
        }
        return result;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top