Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for NP (0.02 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

        first_mid = self._lower_bound + self._bin_width / 2
        last_mid = first_mid + (self._num_bins - 1) * self._bin_width
        self._hist_mids = np.linspace(first_mid, last_mid, self._num_bins)
    
      def _get_dequantized_hist_mids_after_quantize(
          self, quant_min: float, quant_max: float
      ) -> np.ndarray:
        """Quantizes and dequantizes hist_mids using quant_min and quant_max.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    	}
    
    	f := &File{
    		Meta:  make(map[string]string),
    		Count: make(map[string]uint64),
    	}
    	np := round(len(hdrPrefix), 4)
    	hdrLen := *(*uint32)(unsafe.Pointer(&data[np]))
    	if hdrLen > pageSize {
    		return corrupt()
    	}
    	meta := data[np+4 : hdrLen]
    	if i := bytes.IndexByte(meta, 0); i >= 0 {
    		meta = meta[:i]
    	}
    	m := &mappedFile{
    		meta:    string(meta),
    		hdrLen:  hdrLen,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/stablehlo_quantizer_odml_oss.ipynb

            "\n",
            "def calibration_dataset():\n",
            "  rng = np.random.default_rng(seed=1235)\n",
            "  for _ in range(2):\n",
            "    yield {\n",
            "        'lhs_operand': rng.uniform(low=-1.0, high=1.0, size=input_shape).astype(\n",
            "            np.float32\n",
            "        )\n",
            "    }\n",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 12 03:40:43 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top