Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 99 for slicemap (0.15 sec)

  1. test/prove.go

    	e = stack[last]
    	// Buggy compiler prints "Disproved Leq64" for the next line.
    	stack = stack[:last]
    	return e, nil
    }
    
    func sm1(b []int, x int) {
    	// Test constant argument to slicemask.
    	useSlice(b[2:8]) // ERROR "Proved slicemask not needed$"
    	// Test non-constant argument with known limits.
    	if cap(b) > 10 {
    		useSlice(b[2:])
    	}
    }
    
    func lim1(x, y, z int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      TF_RETURN_IF_ERROR(GetNodeAttr(n->def(), "value", &proto));
      Tensor tensor(proto->dtype());
      TF_RET_CHECK(tensor.FromProto(*proto));
      return {tensor};
    }
    
    struct SliceInputs {
      Output slice_op;
      Output input;
      Output begin;
      Output size;
    
      // The size of the TF slice operation as a std::vector.  We can always compute
      // this because we only manipulate slices with a Const size.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/encoding/json/decode_test.go

    	Map   map[string]Small
    	MapP  map[string]*Small
    	PMap  *map[string]Small
    	PMapP *map[string]*Small
    
    	EmptyMap map[string]Small
    	NilMap   map[string]Small
    
    	Slice   []Small
    	SliceP  []*Small
    	PSlice  *[]Small
    	PSliceP *[]*Small
    
    	EmptySlice []Small
    	NilSlice   []Small
    
    	StringSlice []string
    	ByteSlice   []byte
    
    	Small   Small
    	PSmall  *Small
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

                           {
                               ConstOp::getOperationName(),
                               ReshapeOp::getOperationName(),
                               SliceOp::getOperationName(),
                               TransposeOp::getOperationName(),
                           }) {}
    
      LogicalResult matchAndRewrite(Operation *src_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

          CompileTimeConstantOperand<TF::ScatterNdOp, 2>,      // $shape
          CompileTimeConstantOperand<TF::SegmentSumV2Op, 2>,   // $num_segments
          CompileTimeConstantOperand<TF::SliceOp, 1, 2>,       // $begin, $size
          CompileTimeConstantOperand<TF::SparseToDenseOp, 1>,  // $output_shape
          CompileTimeConstantOperand<TF::SplitOp, 0>,          // $split_dim
          // $size_splits, $split_dim
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/prove.go

    		case OpSlicemask:
    			// Replace OpSlicemask operations in b with constants where possible.
    			x, delta := isConstDelta(v.Args[0])
    			if x == nil {
    				break
    			}
    			// slicemask(x + y)
    			// if x is larger than -y (y is negative), then slicemask is -1.
    			lim, ok := ft.limits[x.ID]
    			if !ok {
    				break
    			}
    			if lim.umin > uint64(-delta) {
    				if v.Args[0].Op == OpAdd64 {
    					v.reset(OpConst64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (ZeroExt32to64        x) => (I64And x (I64Const [0xffffffff]))
    (ZeroExt16to(64|32)   x) => (I64And x (I64Const [0xffff]))
    (ZeroExt8to(64|32|16) x) => (I64And x (I64Const [0xff]))
    
    (Slicemask x) => (I64ShrS (I64Sub (I64Const [0]) x) (I64Const [63]))
    
    // Lowering truncation
    // Because we ignore the high parts, truncates are just copies.
    (Trunc64to(32|16|8) ...) => (Copy ...)
    (Trunc32to(16|8)    ...) => (Copy ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. src/encoding/gob/decode.go

    	}
    	if value.Cap() < n {
    		safe := saferio.SliceCap[byte](uint64(n))
    		if safe < 0 {
    			errorf("%s slice too big: %d elements", value.Type(), n)
    		}
    		value.Set(reflect.MakeSlice(value.Type(), safe, safe))
    		ln := safe
    		i := 0
    		for i < n {
    			if i >= ln {
    				// We didn't allocate the entire slice,
    				// due to using saferio.SliceCap.
    				// Grow the slice for one more element.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      (replaceWithValue $input),
      [(CanOptimizeIdentitySliceOp $input, $begin, $size)]>;
    
    // Convert the StridedSliceOp to a SliceOp when possible. This will enable other
    // optimizations on SliceOp to run.
    def OptimizeStridedSlice : Pat<
      (TFL_StridedSliceOp $input,
        (Arith_ConstantOp $begin),
        (Arith_ConstantOp $end),
        (Arith_ConstantOp $stride),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      // Create a dense constant op for slice's size
      auto slice_i2c_size =
          CreateI64DenseConst(builder, size_shape, size_values, location);
    
      return builder->create<TF::SliceOp>(
          location,
          RankedTensorType::get(
              size_values,
              mlir::cast<RankedTensorType>(input.getType()).getElementType()),
          input, slice_i2c_begin, slice_i2c_size);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top