- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for scale_fn (0.19 sec)
-
src/internal/profile/profile.go
if ratio == 1 { return } ratios := make([]float64, len(p.SampleType)) for i := range p.SampleType { ratios[i] = ratio } p.ScaleN(ratios) } // ScaleN multiplies each sample values in a sample by a different amount. func (p *Profile) ScaleN(ratios []float64) error { if len(p.SampleType) != len(ratios) { return fmt.Errorf("mismatched scale ratios, got %d, want %d", len(ratios), len(p.SampleType)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 17:57:40 UTC 2024 - 13.4K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/profile.go
return } ratios := make([]float64, len(p.SampleType)) for i := range p.SampleType { ratios[i] = ratio } p.ScaleN(ratios) } // ScaleN multiplies each sample values in a sample by a different amount // and keeps only samples that have at least one non-zero value. func (p *Profile) ScaleN(ratios []float64) error { if len(p.SampleType) != len(ratios) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 22.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go
if sampleType[i] == nil { ratios[i] = 1 continue } ratios[i], _ = Scale(1, st.Unit, sampleType[i].Unit) p.SampleType[i].Unit = sampleType[i].Unit } if err := p.ScaleN(ratios); err != nil { return fmt.Errorf("scale: %v", err) } } return nil } // CommonValueType returns the finest type from a set of compatible // types.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 8.8K bytes - Viewed (0) -
src/internal/profile/merge.go
} normScale := make([]float64, len(baseVals)) for i := range baseVals { if srcVals[i] == 0 { normScale[i] = 0.0 } else { normScale[i] = float64(baseVals[i]) / float64(srcVals[i]) } } p.ScaleN(normScale) return nil } func isZeroSample(s *Sample) bool { for _, v := range s.Value { if v != 0 { return false } } return true } type profileMerger struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 17 19:35:56 UTC 2020 - 11.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/merge.go
normScale := make([]float64, len(baseVals)) for i := range baseVals { if srcVals[i] == 0 { normScale[i] = 0.0 } else { normScale[i] = float64(baseVals[i]) / float64(srcVals[i]) } } p.ScaleN(normScale) return nil } func isZeroSample(s *Sample) bool { for _, v := range s.Value { if v != 0 { return false } } return true } type profileMerger struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/schema_generated.h
auto max__ = max ? _fbb.CreateVector<float>(*max) : 0; auto scale__ = scale ? _fbb.CreateVector<float>(*scale) : 0; auto zero_point__ = zero_point ? _fbb.CreateVector<int64_t>(*zero_point) : 0; return tflite::CreateQuantizationParameters( _fbb, min__, max__, scale__, zero_point__, details_type, details, quantized_dimension);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 1M bytes - Viewed (0)