Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 3,659 for casts (0.46 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

        auto from_type = from->GetTypeId();
        auto to_type = GetTypeId();
        if (from_type == to_type) return 0.0f;
    
        // TODO(renjieliu): Implement a better version for different hardware cases.
        return buffer_size * kCrossHardwareTransferPerByteCost / 8.0 +
               kCrossHardwareTransferFixedCost;
      }
    
      mlir::RewritePatternSet GetTransformations(
          MLIRContext* context) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Striped64.java

      transient volatile int busy;
    
      /** Package-private default constructor */
      Striped64() {}
    
      /** CASes the base field. */
      final boolean casBase(long cmp, long val) {
        return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val);
      }
    
      /** CASes the busy field from 0 to 1 to acquire lock. */
      final boolean casBusy() {
        return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/Striped64.java

      transient volatile int busy;
    
      /** Package-private default constructor */
      Striped64() {}
    
      /** CASes the base field. */
      final boolean casBase(long cmp, long val) {
        return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val);
      }
    
      /** CASes the busy field from 0 to 1 to acquire lock. */
      final boolean casBusy() {
        return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    bool IsLastDimEqualToNumElements(Type type1, Type type2) {
      return (mlir::cast<ShapedType>(type1).getRank() >= 1 &&
              mlir::cast<ShapedType>(type1).getDimSize(
                  mlir::cast<ShapedType>(type1).getRank() - 1) ==
                  mlir::cast<ShapedType>(type2).getNumElements());
    }
    
    bool CanFuseConvOrDepthwiseConvShapes(const ArrayRef<int64_t> filter_shape,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

      %accum_zp = "tf.Const"() { value = dense<0> : tensor<i32> } : () -> tensor<i32>
      %quant_input = "tf.Cast"(%input) {} : (tensor<1x9x9x9xi8>) ->
        tensor<1x9x9x9x!tf_type.qint8>
      %quant_filter = "tf.Cast"(%filter) {} : (tensor<3x3x9x10xi8>) ->
        tensor<3x3x9x10x!tf_type.qint8>
      %0 = "tf.UniformQuantizedConvolution"(
        %quant_input, %quant_filter, %input_scale, %input_zp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java

         * Checks if a type has a type variable which may require resolving.
         */
        public static boolean hasTypeVariable(Type type) {
            // do some checks up-front, so we avoid creating the queue in most cases
            // Cases we want to handle:
            // - List<String>
            // - Class<?>
            // - List<Class<?>>
            // - Integer[]
            // - ? extends BaseType
            // - Class<?>[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    namespace {
    
    // These are just fake costs.
    constexpr float kDequantCost = 2.0;
    constexpr float kQuantCost = 2.0;
    constexpr float kRequantCost = 2.0;
    
    // TODO(renjieliu): Ideally this should consider different kinds of SOCs as
    // well.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. src/go/printer/testdata/declarations.golden

    	"package_bb"
    	"package_ccc"	// comment
    	"package_dddd"	// comment
    )
    
    // print import paths as double-quoted strings
    // (we would like more test cases but the go/parser
    // already excludes most incorrect paths, and we don't
    // bother setting up test-ASTs manually)
    import (
    	"fmt"
    	"math"
    )
    
    // at least one empty line between declarations of different kind
    import _ "io"
    
    var _ int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object.go

    // An error is returned if it's not possible to cast the object to
    // metav1.Object type.
    func newCachingObject(object runtime.Object) (*cachingObject, error) {
    	if obj, ok := object.(metaRuntimeInterface); ok {
    		result := &cachingObject{
    			object:     obj,
    			deepCopied: false,
    		}
    		result.serializations.Store(make(serializationsCache))
    		return result, nil
    	}
    	return nil, fmt.Errorf("can't cast object to metav1.Object: %#v", object)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 18:03:48 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      "$0.isa<DenseElementsAttr>() && "
      "$0.cast<DenseElementsAttr>().getNumElements() == 1 && "
      "(($0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isLargest() && "
      "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegative()) || "
      "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegInfinity())">>;
    
    def L2NormValidReduceIndex : Constraint<CPred<
      "L2NormalizeReduceAxis($0, $1.cast<DenseElementsAttr>())">>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
Back to top