Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 54 for sliceok3 (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

    }
    
    // Determines the output type of the `SliceOp` when it is being inserted in
    // place of a `XlaGatherOp`. When the dimensions of `xla_gather_op_output_type`
    // is known, the `collapsed_dims` are restored. `xla_gather_op_output_type` is
    // the result of collapsing the `collapsed_dims`, but the `SliceOp`'s output
    // should not have the dimensions collapsed already. Returns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. src/cmd/internal/bio/buf.go

    // backing memory is read-only.
    func (r *Reader) Slice(length uint64) ([]byte, bool, error) {
    	if length == 0 {
    		return []byte{}, false, nil
    	}
    
    	data, ok := r.sliceOS(length)
    	if ok {
    		return data, true, nil
    	}
    
    	data = make([]byte, length)
    	_, err := io.ReadFull(r, data)
    	if err != nil {
    		return nil, false, err
    	}
    	return data, false, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 11 17:15:15 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

                    mlir::stablehlo::ReshapeOp, mlir::stablehlo::SelectOp,
                    mlir::stablehlo::SliceOp, mlir::stablehlo::TransposeOp>(op)) {
        scale_spec->has_same_scale_requirement = true;
      }
      if (llvm::isa<mlir::stablehlo::DynamicSliceOp, mlir::stablehlo::GatherOp,
                    mlir::stablehlo::PadOp, mlir::stablehlo::SliceOp>(op)) {
        scale_spec->has_same_operand_and_result_type_requirement = true;
      }
      return scale_spec;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      slice_size[0] = 1;
      auto size_const = GetR1Const(slice_size, builder, loc);
      auto slice_type = tensorflow::GetTypeFromTFTensorShape(
          slice_size, buffer_type.getElementType());
      auto slice = builder.create<TF::SliceOp>(
          loc, ArrayRef<Type>{slice_type},
          ArrayRef<Value>{buffer, GetIndicesForElement(index, buffer, builder, loc),
                          size_const});
      if (keep_slice_shape) return slice;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. src/cmd/internal/bio/buf_mmap.go

    //	OpenBSD   unlimited
    var mmapLimit int32 = 1<<31 - 1
    
    func init() {
    	// Linux is the only practically concerning OS.
    	if runtime.GOOS == "linux" {
    		mmapLimit = 30000
    	}
    }
    
    func (r *Reader) sliceOS(length uint64) ([]byte, bool) {
    	// For small slices, don't bother with the overhead of a
    	// mapping, especially since we have no way to unmap it.
    	const threshold = 16 << 10
    	if length < threshold {
    		return nil, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/issues1.go

    // interface has been instantiated as its constraint may contain
    // a type parameter that was substituted with a defined type.
    // Test case from an (originally) failing example.
    
    type sliceOf[E any] interface{ ~[]E }
    
    func append[T interface{}, S sliceOf[T], T2 interface{}](s S, t ...T2) S { panic(0) }
    
    var f           func()
    var cancelSlice []context.CancelFunc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. src/cmd/internal/cov/mreader.go

    )
    
    // This file contains the helper "MReader", a wrapper around bio plus
    // an "mmap'd read-only" view of the file obtained from bio.SliceRO().
    // MReader is designed to implement the io.ReaderSeeker interface.
    // Since bio.SliceOS() is not guaranteed to succeed, MReader falls back
    // on explicit reads + seeks provided by bio.Reader if needed.
    
    type MReader struct {
    	f        *os.File
    	rdr      *bio.Reader
    	fileView []byte
    	off      int64
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:12:25 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

      Value packed_low_begin_value = CreateConstValue<int64_t>(
          builder, loc, {rank}, SmallVector<int64_t>(rank, 0));
      Value packed_low_value =
          builder.create<TF::SliceOp>(loc, packed_output_type, value,
                                      packed_low_begin_value, packed_shape_value);
      packed_low_value = builder.create<TF::BitwiseAndOp>(
          loc, packed_output_type, packed_low_value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. schema/utils.go

    func GetRelationsValues(ctx context.Context, reflectValue reflect.Value, rels []*Relationship) (reflectResults reflect.Value) {
    	for _, rel := range rels {
    		reflectResults = reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.FieldSchema.ModelType)), 0, 1)
    
    		appendToResults := func(value reflect.Value) {
    			if _, isZero := rel.Field.ValueOf(ctx, value); !isZero {
    				result := reflect.Indirect(rel.Field.ReflectValueOf(ctx, value))
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    TAC_REGISTER_GPU_OP(ReluOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(Relu6Op, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(RsqrtOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(SinOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(SliceOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(SoftmaxOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(SpaceToDepthOp, CreateBasicOpNoCost);
    TAC_REGISTER_GPU_OP(SqrtOp, CreateBasicOpNoCost);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top