Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 54 for sliceok3 (0.11 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    class RewriteQuantizedSliceOp : public OpRewritePattern<stablehlo::SliceOp> {
     public:
      using OpRewritePattern<stablehlo::SliceOp>::OpRewritePattern;
    
      LogicalResult match(stablehlo::SliceOp op) const override {
        return success(IsOpFullyQuantized(op));
      }
    
      void rewrite(stablehlo::SliceOp op,
                   PatternRewriter& rewriter) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  2. src/reflect/benchmark_test.go

    			})
    		}
    		name := fmt.Sprintf("size=%v", size.arg.Len())
    		b.Run(name, bench)
    	}
    }
    
    func BenchmarkPtrTo(b *testing.B) {
    	// Construct a type with a zero ptrToThis.
    	type T struct{ int }
    	t := SliceOf(TypeOf(T{}))
    	ptrToThis := ValueOf(t).Elem().FieldByName("PtrToThis")
    	if !ptrToThis.IsValid() {
    		b.Skipf("%v has no ptrToThis field; was it removed from rtype?", t) // TODO fix this at top of refactoring
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

          GetReshapeOpForConv2DFilter(final_shape, transpose_op, &builder);
      // Update filter of Conv2D.
      conv2d.setOperand(1, final_reshape_op);
    }
    
    // Creates slice op for filter in back prop pass.
    TF::SliceOp GetSliceOpForConv2DBackPropFilter(
        ArrayRef<int32_t> old_filter_shape, Value input, OpBuilder* builder) {
      SmallVector<int64_t, 4> slice_size(old_filter_shape.begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. schema/schema.go

    	}
    	return fmt.Sprintf("%s.%s", schema.ModelType.PkgPath(), schema.ModelType.Name())
    }
    
    func (schema Schema) MakeSlice() reflect.Value {
    	slice := reflect.MakeSlice(reflect.SliceOf(reflect.PointerTo(schema.ModelType)), 0, 20)
    	results := reflect.New(slice.Type())
    	results.Elem().Set(slice)
    
    	return results
    }
    
    func (schema Schema) LookUpField(name string) *Field {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    //===----------------------------------------------------------------------===//
    // SliceOp
    //===----------------------------------------------------------------------===//
    
    mlir::LogicalResult SliceOp::verify() {
      SliceOp op = *this;
      auto input_type = op.getInput().getType().cast<ShapedType>();
      auto begin_type = op.getBegin().getType().cast<ShapedType>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  8. test/escape_reflect.go

    // Unfortunate: x doesn't need to escape to heap, just to result.
    func slice2(x string) string { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Slice(1, 2).String()
    }
    
    func slice3(x [10]byte) []byte {
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Slice(1, 2).Bytes()
    }
    
    func elem1(x *int) int { // ERROR "x does not escape"
    	v := reflect.ValueOf(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. src/go/parser/parser.go

    				args = append(args, p.parseType())
    			}
    		}
    	}
    
    	p.exprLev--
    	rbrack := p.expect(token.RBRACK)
    
    	if ncolons > 0 {
    		// slice expression
    		slice3 := false
    		if ncolons == 2 {
    			slice3 = true
    			// Check presence of middle and final index here rather than during type-checking
    			// to prevent erroneous programs from passing through gofmt (was go.dev/issue/7305).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  10. src/reflect/type.go

    		mask = mask[15:]
    	}
    
    	dst = append(dst, byte(ptrs))
    	dst = append(dst, mask...)
    	return dst
    }
    
    // SliceOf returns the slice type with element type t.
    // For example, if t represents int, SliceOf(t) represents []int.
    func SliceOf(t Type) Type {
    	typ := t.common()
    
    	// Look in cache.
    	ckey := cacheKey{Slice, typ, nil, 0}
    	if slice, ok := lookupCache.Load(ckey); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top