- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for litWidth (1.14 sec)
-
src/compress/lzw/writer_test.go
t.Errorf("%s (order=%d litWidth=%d): %v", fn, order, litWidth, err0) return } if err1 != nil { t.Errorf("%s (order=%d litWidth=%d): %v", fn, order, litWidth, err1) return } if len(b1) != len(b0) { t.Errorf("%s (order=%d litWidth=%d): length mismatch %d != %d", fn, order, litWidth, len(b1), len(b0)) return } for i := 0; i < len(b0); i++ { if b1[i] != b0[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 12 11:00:47 UTC 2021 - 5.7K bytes - Viewed (0) -
src/compress/lzw/writer.go
switch order { case LSB: w.write = (*Writer).writeLSB case MSB: w.write = (*Writer).writeMSB default: w.err = errors.New("lzw: unknown order") return } if litWidth < 2 || 8 < litWidth { w.err = fmt.Errorf("lzw: litWidth %d out of range", litWidth) return } bw, ok := dst.(writer) if !ok && dst != nil { bw = bufio.NewWriter(dst) } w.w = bw lw := uint(litWidth)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 7.9K bytes - Viewed (0) -
src/compress/lzw/reader.go
r.init(src, order, litWidth) return r } func (r *Reader) init(src io.Reader, order Order, litWidth int) { switch order { case LSB: r.read = (*Reader).readLSB case MSB: r.read = (*Reader).readMSB default: r.err = errors.New("lzw: unknown order") return } if litWidth < 2 || 8 < litWidth { r.err = fmt.Errorf("lzw: litWidth %d out of range", litWidth) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:39 UTC 2023 - 8K bytes - Viewed (0) -
src/compress/lzw/reader_test.go
var order Order switch d[1] { case "LSB": order = LSB case "MSB": order = MSB default: t.Errorf("%s: bad order %q", tt.desc, d[1]) } litWidth, _ := strconv.Atoi(d[2]) rc := NewReader(strings.NewReader(tt.compressed), order, litWidth) defer rc.Close() b.Reset() n, err := io.Copy(&b, rc) s := b.String() if err != nil { if err != tt.err {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 16:57:58 UTC 2024 - 7.6K bytes - Viewed (0) -
src/image/gif/writer.go
e.writeByte(fColorTable | uint8(paddedSize)) e.write(e.localColorTable[:ct]) } } litWidth := paddedSize + 1 if litWidth < 2 { litWidth = 2 } e.writeByte(uint8(litWidth)) // LZW Minimum Code Size. bw := blockWriter{e: e} bw.setup() lzww := lzw.NewWriter(bw, lzw.LSB, litWidth) if dx := b.Dx(); dx == pm.Stride { _, e.err = lzww.Write(pm.Pix[:dx*b.Dy()]) if e.err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:38:09 UTC 2024 - 11.9K bytes - Viewed (0) -
src/image/gif/reader.go
} m.Palette = p } } litWidth, err := readByte(d.r) if err != nil { return fmt.Errorf("gif: reading image data: %v", err) } if litWidth < 2 || litWidth > 8 { return fmt.Errorf("gif: pixel size in decode out of range: %d", litWidth) } // A wonderfully Go-like piece of magic. br := &blockReader{d: d} lzwr := lzw.NewReader(br, lzw.LSB, int(litWidth)) defer lzwr.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:15:54 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
// type. const int bitwidth = storage_type.getIntOrFloatBitWidth(); const bool is_weight_buffer = is_constant && (bitwidth == 8); int64_t storage_min = QuantizedType::getDefaultMinimumForInteger(is_signed, bitwidth) + static_cast<int>(is_weight_buffer); int64_t storage_max = QuantizedType::getDefaultMaximumForInteger(is_signed, bitwidth); uint32_t flags =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h
// template argument list. template <unsigned BitWidth, int ZeroPoint, int ScaleMantissa, int ScaleExp, int64_t StorageTypeMin, int64_t StorageTypeMax, bool Sign> class FixedResultUniformScale { public: template <typename ConcreteType> class Impl : public QuantizationSpecTraitBase< ConcreteType, FixedResultUniformScale< BitWidth, ZeroPoint, ScaleMantissa, ScaleExp,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/fill_quantization_options.cc
using QuantizationComponent = ::stablehlo::quantization::QuantizationComponentSpec_QuantizationComponent; using BitType = ::stablehlo::quantization::QuantizationComponentSpec_BitType; using BitWidth = ::stablehlo::quantization::QuantizationComponentSpec_BitWidth; // Sets component, bit type and bit width information to the given spec // instance. void SetQuantizationComponentSpec(QuantizationComponentSpec* spec,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/quantization_options.proto
// NEXT ID: 4 enum QuantizationComponent { COMPONENT_UNSPECIFIED = 0; COMPONENT_ACTIVATION = 1; COMPONENT_WEIGHT = 2; COMPONENT_BIAS = 3; } // NEXT ID: 5 enum BitWidth { BIT_WIDTH_UNSPECIFIED = 0; BIT_WIDTH_4 = 1; BIT_WIDTH_8 = 2; BIT_WIDTH_16 = 3; BIT_WIDTH_32 = 4; } // NEXT ID: 4 enum BitType { BIT_TYPE_UNSPECIFIED = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 22 02:20:05 UTC 2023 - 3.6K bytes - Viewed (0)