Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 98 for NP (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py

            return {'output': res}
    
        def data_gen():
          for _ in range(255):
            yield {
                'x': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
                ),
                'y': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
                ),
            }
    
        root = ModelWithAdd()
    
        temp_path = self.create_tempdir().full_path
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

            self.filters_0 = np.random.uniform(
                low=-1.0, high=1.0, size=(4, 3)
            ).astype('f4')
            self.bias_0 = np.random.uniform(low=-1.0, high=1.0, size=(3,)).astype(
                'f4'
            )
    
            self.filters_1 = np.random.uniform(
                low=-1.0, high=1.0, size=(4, 3)
            ).astype('f4')
            self.bias_1 = np.random.uniform(low=-1.0, high=1.0, size=(3,)).astype(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/typecheck.go

    	// observable side effects, and keeping it in place allows better escape analysis.
    	if !ir.Any(*np, func(n ir.Node) bool { return n.Op() != ir.ONEW && callOrChan(n) }) {
    		return
    	}
    
    	tmp := TempAt(base.Pos, ir.CurFunc, (*np).Type())
    	as := ir.NewAssignStmt(base.Pos, tmp, *np)
    	as.PtrInit().Append(Stmt(ir.NewDecl(n.Pos(), ir.ODCL, tmp)))
    	*np = tmp
    
    	n.PtrInit().Append(Stmt(as))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/testdata/complexnums.go

    package complexnums
    
    const NN = -1 - 1i
    const NP = -1 + 1i
    const PN = 1 - 1i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 17 23:03:13 UTC 2015
    - 95 bytes
    - Viewed (0)
Back to top