Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for asSlice (0.12 sec)

  1. src/reflect/value.go

    		panic(&ValueError{"reflect.Value.Slice", v.kind()})
    
    	case Array:
    		if v.flag&flagAddr == 0 {
    			panic("reflect.Value.Slice: slice of unaddressable array")
    		}
    		tt := (*arrayType)(unsafe.Pointer(v.typ()))
    		cap = int(tt.Len)
    		typ = (*sliceType)(unsafe.Pointer(tt.Slice))
    		base = v.ptr
    
    	case Slice:
    		typ = (*sliceType)(unsafe.Pointer(v.typ()))
    		s := (*unsafeheader.Slice)(v.ptr)
    		base = s.Data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir

    // CHECK:           [[VAL_13:%.*]] = "tf.Slice"([[VAL_7]], [[VAL_11]], [[VAL_12]]) : (tensor<4x3xf32>, tensor<2xi64>, tensor<2xi64>) -> tensor<1x0xf32>
    // CHECK-DAG:       [[VAL_14:%.*]] = arith.constant dense<[1, 0]> : tensor<2xi64>
    // CHECK-DAG:       [[VAL_15:%.*]] = arith.constant dense<[1, 0]> : tensor<2xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 122.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir

    // CHECK-NOT: tfl.padv2
    // CHECK: stablehlo.pad
    
    // -----
    
    // Tests that a quantized `stablehlo.slice` is converted to
    // `tfl.slice` when stride is 1.
    
    func.func @slice(
        %arg0: tensor<3x4x!quant.uniform<i8:f32, 2.000000e+00:-1>>
      ) -> tensor<2x2x!quant.uniform<i8:f32, 2.000000e+00:-1>> {
      %0 = "stablehlo.slice"(%arg0) {
        start_indices = array<i64: 1, 2>,
        limit_indices = array<i64: 3, 4>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 106.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        return rewriter.create<TFL::DilateOp>(dilate.getLoc(), dilated_output_type,
                                              input, dilate, constant_values);
      }
    };
    
    // Rewrites quantized stablehlo.slice to tfl.slice or tfl.strided_slice.
    class RewriteQuantizedSliceOp : public OpRewritePattern<stablehlo::SliceOp> {
     public:
      using OpRewritePattern<stablehlo::SliceOp>::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  5. src/runtime/proc.go

    	}
    	unlock(&sched.lock)
    	stopm()
    }
    
    // Schedules gp to run on the current M.
    // If inheritTime is true, gp inherits the remaining time in the
    // current time slice. Otherwise, it starts a new time slice.
    // Never returns.
    //
    // Write barriers are allowed because this is called immediately after
    // acquiring a P in several places.
    //
    //go:yeswritebarrierrec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/proxier_test.go

    			Selector:  map[string]string{"foo": "bar"},
    			Ports:     []v1.ServicePort{{Name: "", TargetPort: intstr.FromInt32(80), Protocol: v1.ProtocolTCP}},
    		},
    	})
    
    	// Add initial endpoint slice
    	endpointSlice := &discovery.EndpointSlice{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      fmt.Sprintf("%s-1", serviceName),
    			Namespace: namespaceName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/runtime/framework_test.go

    	podInfo, err := framework.NewPodInfo(pod)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return podInfo
    }
    
    // BuildNodeInfos build NodeInfo slice from a v1.Node slice
    func BuildNodeInfos(nodes []*v1.Node) []*framework.NodeInfo {
    	res := make([]*framework.NodeInfo, len(nodes))
    	for i := 0; i < len(nodes); i++ {
    		res[i] = framework.NewNodeInfo()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        // and `finalize`.
        regions.push_back(RegionSuccessor(
            &getNext(), getNext().front().getArguments().slice(0, num)));
        regions.push_back(RegionSuccessor(
            &getFinalize(), getFinalize().front().getArguments().slice(0, num)));
      } else {
        // `finalize` branches back to the op itself, not passing any arguments.
        regions.push_back(RegionSuccessor());
      }
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/ppc64/asm9.go

    // operand combinations for a class of instruction.  The variable oprange indexes
    // all valid ppc64 opcodes.
    //
    // oprange is initialized to point a slice within optab which contains the valid
    // operand combinations for a given instruction.  This is initialized from buildop.
    //
    // Likewise, each slice of optab is dynamically sorted using the ocmp Sort interface
    // to arrange entries to minimize text size of each opcode.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

    func.func @slice1Tensor(%arg0: tensor<2x3x5xf32>, %arg1: tensor<3xi32>, %arg2: tensor<3xi32>) -> tensor<?x3x5xf32> {
      %0 = "tf.Slice"(%arg0, %arg1, %arg2) : (tensor<2x3x5xf32>, tensor<3xi32>, tensor<3xi32>) -> tensor<?x3x5xf32>
      func.return %0 : tensor<?x3x5xf32>
      // CHECK-LABEL: slice1Tensor
      // CHECK: "tfl.slice"(%arg0, %arg1, %arg2) : (tensor<2x3x5xf32>, tensor<3xi32>, tensor<3xi32>) -> tensor<?x3x5xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
Back to top