Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 248 for uvarint (0.14 sec)

  1. src/internal/trace/batchcursor.go

    	}
    	n := 1
    
    	// Read timestamp diff.
    	ts, nb := binary.Uvarint(b[n:])
    	if nb <= 0 {
    		return 0, 0, fmt.Errorf("found invalid uvarint for timestamp")
    	}
    	n += nb
    
    	// Read the rest of the arguments.
    	for i := 0; i < len(spec.Args)-1; i++ {
    		arg, nb := binary.Uvarint(b[n:])
    		if nb <= 0 {
    			return 0, 0, fmt.Errorf("found invalid uvarint")
    		}
    		e.args[i] = arg
    		n += nb
    	}
    	return n, timestamp(ts), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/index/suffixarray/suffixarray.go

    func writeInt(w io.Writer, buf []byte, x int) error {
    	binary.PutVarint(buf, int64(x))
    	_, err := w.Write(buf[0:binary.MaxVarintLen64])
    	return err
    }
    
    // readInt reads an int x from r using buf to buffer the read and returns x.
    func readInt(r io.Reader, buf []byte) (int64, error) {
    	_, err := io.ReadFull(r, buf[0:binary.MaxVarintLen64]) // ok to continue with error
    	x, _ := binary.Varint(buf)
    	return x, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/runtime/tracebuf.go

    	// Write the buffer's header.
    	if exp == traceNoExperiment {
    		w.byte(byte(traceEvEventBatch))
    	} else {
    		w.byte(byte(traceEvExperimentalBatch))
    		w.byte(byte(exp))
    	}
    	w.varint(uint64(w.gen))
    	w.varint(uint64(mID))
    	w.varint(uint64(ts))
    	w.traceBuf.lenPos = w.varintReserve()
    	return w
    }
    
    // traceBufQueue is a FIFO of traceBufs.
    type traceBufQueue struct {
    	head, tail *traceBuf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. src/internal/trace/event/event.go

    	// HasData is true if the event has trailer consisting of a
    	// varint length followed by unencoded bytes of some data.
    	//
    	// An event may not be both a timed event and have data.
    	HasData bool
    
    	// IsStack indicates that the event represents a complete
    	// stack trace. Specifically, it means that after the arguments
    	// there's a varint length, followed by 4*length varints. Each
    	// group of 4 represents the PC, file ID, func ID, and line number
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. src/runtime/tracetype.go

    	// lots of varint sizes.
    	//
    	// Add 1 because we might also write a traceAllocFreeTypesBatch byte.
    	var flushed bool
    	w, flushed = w.ensure(1 + maxBytes)
    	if flushed {
    		// Annotate the batch as containing types.
    		w.byte(byte(traceAllocFreeTypesBatch))
    	}
    
    	// Emit type.
    	w.varint(uint64(node.id))
    	w.varint(uint64(uintptr(unsafe.Pointer(typ))))
    	w.varint(uint64(typ.Size()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tensorlist.mlir

      %1 = "tf.AddN"(%arg0, %arg1) : (tensor<!tf_type.variant<tensor<*xi32>>>, tensor<!tf_type.variant<tensor<*xi32>>>) -> tensor<!tf_type.variant<tensor<*xi32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/features/FeaturesResolveIntegrationTest.groovy

            then:
            failure.assertHasCause("""Unable to find a variant of org:foo:1.0 providing the requested capability org:feature-3:
       - Variant api provides org:foo:1.0
       - Variant feature1 provides org:feature-1:1.0
       - Variant feature2 provides org:feature-2:1.0
       - Variant runtime provides org:foo:1.0""")
        }
    
        def "can select a variant providing the required set of capabilities"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 30 20:29:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir

          f = @identity} : (tensor<!tf_type.variant<tensor<f32>>>) -> tensor<!tf_type.variant<tensor<f32>>>
      %2 = "tf.OptionalGetValue"(%1) : (tensor<!tf_type.variant<tensor<f32>>>) -> tensor<f32>
      %3 = "tf.OptionalNone"() : () -> tensor<!tf_type.variant<tensor<f32>>>
      return %2, %3 : tensor<f32>, tensor<!tf_type.variant<tensor<f32>>>
    }
    
    func.func private @identity(%arg0: tensor<!tf_type.variant<tensor<f32>>>) -> tensor<!tf_type.variant<tensor<f32>>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/tf_variant_type.mlir

    func.func @main(%arg0 : tensor<!tf_type.variant<tensor<2xi32>>>, %arg1: tensor<!tf_type.variant<tensor<*xi32>>>) -> tensor<!tf_type.variant<tensor<2xi32>>> {
      func.return %arg0 : tensor<!tf_type.variant<tensor<2xi32>>>
    }
    
    // CHECK:          func.func @main(%[[ARG0:.*]]: tensor<!tf_type.variant<tensor<2xi32>>>, %[[ARG1:.*]]: tensor<!tf_type.variant<tensor<*xi32>>>) -> tensor<!tf_type.variant<tensor<2xi32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 21:25:51 UTC 2024
    - 629 bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/MavenJavaModule.groovy

        }
    
        private static void assertAttributes(GradleModuleMetadata.Variant variant, Map<String, Object> expected) {
            assert variant.attributes.size() == expected.size()
            expected.each { attribute, value ->
                assert variant.attributes.containsKey(attribute)
                assert variant.attributes[attribute] == value
            }
        }
    
        void assertNoDependencies() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top