Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for NP (0.03 sec)

  1. src/sync/atomic/value.go

    			continue
    		}
    		// First store completed. Check type and overwrite data.
    		if typ != np.typ {
    			panic("sync/atomic: swap of inconsistently typed value into Value")
    		}
    		op := (*efaceWords)(unsafe.Pointer(&old))
    		op.typ, op.data = np.typ, SwapPointer(&vp.data, np.data)
    		return old
    	}
    }
    
    // CompareAndSwap executes the compare-and-swap operation for the [Value].
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. cmd/peer-rest-server.go

    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    // LoadUserHandler - reloads a user on the server.
    func (s *peerRESTServer) LoadUserHandler(mss *grid.MSS) (np grid.NoPayload, nerr *grid.RemoteErr) {
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return np, grid.NewRemoteErr(errServerNotInitialized)
    	}
    
    	accessKey := mss.Get(peerRESTUser)
    	if accessKey == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

        self.assertAllClose(new_outputs_1, new_outputs_2)
    
      @parameterized.named_parameters(
          ('use_constant_with_int32_input', np.int32, False),
          ('use_variable_with_int32_input', np.int32, True),
          ('use_constant_with_int64_input', np.int64, False),
          ('use_variable_with_int64_input', np.int64, True),
      )
      @test_util.run_v2_only
      def test_gather_model(self, input_type, use_variable):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  4. pkg/apis/networking/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(np *networking.NetworkPolicyPeer, c fuzz.Continue) {
    			c.FuzzNoCustom(np) // fuzz self without calling this function again
    			// TODO: Implement a fuzzer to generate valid keys, values and operators for
    			// selector requirements.
    			if np.IPBlock != nil {
    				np.IPBlock = &networking.IPBlock{
    					CIDR:   "192.168.1.0/24",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

      @test_util.deprecated_graph_mode_only
      def test_replace_tensors_by_numpy_ndarrays_is_noop_when_no_tensor(self):
        # Fill the representative dataset with np.ndarrays only.
        repr_ds: repr_dataset.RepresentativeDataset = [
            {
                'input_tensor': np.random.uniform(low=-1.0, high=1.0, size=(4, 3)),
            }
            for _ in range(8)
        ]
    
        with self.session() as sess:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            self.filters = np.stack(
                [
                    np.random.uniform(
                        low=-(i + 1), high=(i + 1), size=filter_shape[:-1]
                    ).astype('f4')
                    for i in range(self.out_channel_size)
                ],
                axis=-1,
            )
    
            self.bias = np.random.uniform(
                low=0, high=10, size=(self.out_channel_size)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. test/escape_calls.go

    type Node struct {
    	s           string
    	left, right *Node
    }
    
    func walk(np **Node) int { // ERROR "leaking param content: np"
    	n := *np
    	w := len(n.s)
    	if n == nil {
    		return 0
    	}
    	wl := walk(&n.left)
    	wr := walk(&n.right)
    	if wl < wr {
    		n.left, n.right = n.right, n.left // ERROR "ignoring self-assignment"
    		wl, wr = wr, wl
    	}
    	*np = n
    	return w + wl + wr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 22:06:07 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/mergelocals/integration.go

    type Pointery2 struct {
    	p *Pointery2
    	x [1024]int
    }
    
    // This type and the following one will have the same size.
    type Vanilla struct {
    	np uintptr
    	x  [1024]int
    }
    
    type Vanilla2 struct {
    	np uintptr
    	x  [1023]int
    	y  int
    }
    
    type Single struct {
    	np uintptr
    	x  [1023]int
    }
    
    var G int
    
    //go:noinline
    func clobber() {
    	G++
    }
    
    func ABC(i, j int) int {
    	r := 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 17:42:19 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm_test.py

        statistics = calib_stats_pb2.CalibrationStatistics()
        statistics.histogram_statistics.lower_bound = 0.0
        statistics.histogram_statistics.bin_width = 1.0
    
        hist_freq = np.zeros(501, dtype=np.int32)
    
        # Advanced calibration methods that use histograms detect outliers, so they
        # don't use the outliers as min/max values.
        hist_freq[0] = 1
        hist_freq[-1] = 1
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

            self.embedding_w = np.random.randn(1024, 3, 4, 3).astype('f4')
            self.embedding_w = np.minimum(np.maximum(self.embedding_w, -4), 4)
    
            self.conv_filters = np.random.uniform(
                low=-10, high=10, size=filter_shape
            ).astype('f4')
    
            second_conv_filter_shape = (3, 3, filter_shape[-1], 1)
            self.second_conv_filters = np.random.uniform(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
Back to top