Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 854 for casts (0.6 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    				},
    			},
    		},
    	}
    	for _, tc := range cases {
    		for _, op := range tc.opts {
    			for _, typ := range tc.costs {
    				t.Run(typ.comparableLiteral+op, func(t *testing.T) {
    					e := typ.comparableLiteral + op
    					testCost(t, e, typ.expectedEstimatedCost, typ.expectedRuntimeCost)
    				})
    			}
    		}
    	}
    }
    
    func TestIndexOfCost(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/GeneralRange.java

      }
    
      boolean isEmpty() {
        // The casts are safe because of the has*Bound() checks.
        return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint())))
            || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint())));
      }
    
      boolean tooLow(@ParametricNullness T t) {
        if (!hasLowerBound()) {
          return false;
        }
        // The cast is safe because of the hasLowerBound() check.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/GeneralRange.java

      }
    
      boolean isEmpty() {
        // The casts are safe because of the has*Bound() checks.
        return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint())))
            || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint())));
      }
    
      boolean tooLow(@ParametricNullness T t) {
        if (!hasLowerBound()) {
          return false;
        }
        // The cast is safe because of the hasLowerBound() check.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

    //===----------------------------------------------------------------------===//
    // Op quantization pass-through patterns.
    //===----------------------------------------------------------------------===//
    // Casts result type of $1 to a quantized type by using the quantization
    // parameters from the type in $0.
    class UpdateShapeWithAxis<int i> : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::CreateReplaceCastHacksWithTFXLAOpsPass());
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCSEPass());
      // Use optimize pass to remove double casts that are inserted when inlining
      // functions.
      pm.addNestedPass<mlir::func::FuncOp>(mlir::quant::CreateOptimizePass());
    }
    
    }  // namespace quantization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  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. platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/MethodVisitorScope.java

            super(ASM_LEVEL, methodVisitor);
        }
    
        public void emit(BytecodeFragment bytecode) {
            bytecode.emit(mv);
        }
    
        /**
         * Unboxes or casts the value at the top of the stack.
         */
        public void _UNBOX(Type targetType) {
            switch (targetType.getSort()) {
                case Type.BOOLEAN:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. tensorflow/c/tf_tensor.cc

    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/lib/core/coding.h"
    #include "tensorflow/core/platform/casts.h"
    
    using tensorflow::Status;
    using tensorflow::Tensor;
    using tensorflow::TensorBuffer;
    using tensorflow::errors::FailedPrecondition;
    using tensorflow::errors::InvalidArgument;
    
    #ifndef LIBTPU_EXCLUDE_C_API_IMPL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top