Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,659 for casts (0.06 sec)

  1. subprojects/core-api/src/main/java/org/gradle/model/internal/type/ModelType.java

                return builder.build();
            } else {
                return Collections.emptyList();
            }
        }
    
        /**
         * Casts this {@code ModelType} object to represent a subclass of the class
         * represented by the specified class object.  Checks that the cast
         * is valid, and throws a {@code ClassCastException} if it is not.  If
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        if (!input_tensor_type || !output_tensor_type) {
          return failure();
        }
    
        // Canonicalize two tfr.cast pairs with different element type to
        // two tfr.casts with the same element type followed by a tf.Cast.
        if ((input_tensor_type.getElementType() !=
             output_tensor_type.getElementType()) &&
            !isQuantizedType(input_type) && !isQuantizedType(output_type)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

          @SuppressWarnings("rawtypes") // JDT-based J2KT Java frontend does not permit the direct cast
          Map rawMap = map;
          @SuppressWarnings("unchecked") // covariant casts safe (unmodifiable)
          ImmutableClassToInstanceMap<B> cast = (ImmutableClassToInstanceMap<B>) rawMap;
          return cast;
        }
        return new Builder<B>().putAll(map).build();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

      pass_manager->addPass(
          mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
    
      if (pass_config.shape_inference) {
        // Add a shape inference pass to optimize away the unnecessary casts.
        pass_manager->addPass(mlir::TF::CreateTFShapeInferencePass());
      }
    
      // Legalize while early to allow further constant folding.
      // TODO(jpienaar): This may not actually matter as we do canonicalization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    #include "tensorflow/compiler/tf2xla/tf2xla_defs.h"
    
    namespace mlir {
    namespace TF {
    
    // TODO(b/229028654) Use definitions from tf2xla_defs.h directly. We currently
    // don't do this to avoid explicit casts (implicit conversion from
    // `absl::string_view` to `llvm::StringRef` is not supported until C++17).
    
    // Whether soft placement is allowed. If true, the marked node is eligible for
    // outside compilation.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

                IsCompatibleTypeWithTFLCastOp(type)) {
              auto cast = b.create<CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            } else {
              auto cast = b.create<TF::CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            }
          }
        }
        args.append(new_args.begin(), new_args.end());
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.td

    // converting back from a quantized to quantizable (expressed) type.
    //
    // Like qcasts, a dcast is allowed to have both its operand and result
    // as non quantized types. This facilitates transformations and marks edges
    // where the computation must be carried out in the expressed type.
    //
    // Especially early in transformation, it is common to have dcasts on
    // all operands to ops that must operate with the expressed type (typically
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 03:10:59 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      return {slice_inputs};
    }
    
    // Casts `x` to a DT_INT64 if it isn't one already.
    Output MakeInt64(const Scope& host_scope, absl::string_view name,
                     const Output& x) {
      return x.type() == DT_INT64
                 ? x
                 : ops::Cast(host_scope.WithOpName(name, "_s64"), x, DT_INT64);
    }
    
    // Returns `slice_inputs` with the index and size inputs cast to DT_INT64.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

      %0 = "tf.IfRegion"(%arg0) ({
        %1 = "tf.Cast"(%arg1) {Truncate = false} : (tensor<2xf32>) -> tensor<?xf32>
        %2 = "tf.Cast"(%1) {Truncate = false} : (tensor<?xf32>) -> tensor<*xf32>
        %3 = func.call @testIf1Then(%2) : (tensor<*xf32>) -> tensor<*xf32>
        "tf.Yield"(%3) : (tensor<*xf32>) -> ()
      },  {
        %1 = "tf.Cast"(%arg1) {Truncate = false} : (tensor<2xf32>) -> tensor<?xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.td

    // converting back from a quantized to quantizable (expressed) type.
    //
    // Like qcasts, a dcast is allowed to have both its operand and result
    // as non quantized types. This facilitates transformations and marks edges
    // where the computation must be carried out in the expressed type.
    //
    // Especially early in transformation, it is common to have dcasts on
    // all operands to ops that must operate with the expressed type (typically
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 13 12:46:08 UTC 2022
    - 10.2K bytes
    - Viewed (0)
Back to top