Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 809 for computed (0.18 sec)

  1. tests/test_computed_fields.py

    from .utils import needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        app = FastAPI()
    
        from pydantic import BaseModel, computed_field
    
        class Rectangle(BaseModel):
            width: int
            length: int
    
            @computed_field
            @property
            def area(self) -> int:
                return self.width * self.length
    
        @app.get("/")
        def read_root() -> Rectangle:
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Aug 04 20:47:07 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. internal/etag/reader.go

    	return ETag(sum)
    }
    
    // VerifyError is an error signaling that a
    // computed ETag does not match an expected
    // ETag.
    type VerifyError struct {
    	Expected ETag
    	Computed ETag
    }
    
    func (v VerifyError) Error() string {
    	return fmt.Sprintf("etag: expected ETag %q does not match computed ETag %q", v.Expected, v.Computed)
    }
    
    // UUIDHash - use uuid to make md5sum
    type UUIDHash struct {
    	uuid []byte
    Go
    - Registered: Sun Apr 07 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/NullCacheTest.java

        listener = queuingRemovalListener();
      }
    
      public void testGet() {
        Object computed = new Object();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder()
                .maximumSize(0)
                .removalListener(listener)
                .build(constantLoader(computed));
    
        Object key = new Object();
        assertSame(computed, cache.getUnchecked(key));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

        listener = queuingRemovalListener();
      }
    
      public void testGet() {
        Object computed = new Object();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder()
                .maximumSize(0)
                .removalListener(listener)
                .build(constantLoader(computed));
    
        Object key = new Object();
        assertSame(computed, cache.getUnchecked(key));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Suppliers.java

          // Because Supplier is read-heavy, we use the "double-checked locking" pattern.
          if (delegate != SUCCESSFULLY_COMPUTED) {
            synchronized (this) {
              if (delegate != SUCCESSFULLY_COMPUTED) {
                T t = delegate.get();
                value = t;
                delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED;
                return t;
              }
            }
          }
          // This is safe because we checked `delegate`.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Suppliers.java

          // Because Supplier is read-heavy, we use the "double-checked locking" pattern.
          if (delegate != SUCCESSFULLY_COMPUTED) {
            synchronized (this) {
              if (delegate != SUCCESSFULLY_COMPUTED) {
                T t = delegate.get();
                value = t;
                delegate = (Supplier<T>) SUCCESSFULLY_COMPUTED;
                return t;
              }
            }
          }
          // This is safe because we checked `delegate`.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractIterator.java

      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
        /** We have computed the next element and haven't returned it yet. */
        READY,
    
        /** We haven't yet computed or have already returned the element. */
        NOT_READY,
    
        /** We have reached the end of the data and are finished. */
        DONE,
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  8. internal/hash/reader.go

    	"github.com/minio/minio/internal/ioutil"
    )
    
    // A Reader wraps an io.Reader and computes the MD5 checksum
    // of the read content as ETag. Optionally, it also computes
    // the SHA256 checksum of the content.
    //
    // If the reference values for the ETag and content SHA26
    // are not empty then it will check whether the computed
    // match the reference values.
    type Reader struct {
    	src         io.Reader
    	bytesRead   int64
    Go
    - Registered: Sun Apr 07 19:28:10 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  9. tensorflow/c/eager/tape.h

    // is used as an input to an op (so we know when we're done computing gradients
    // for that Tensor). We also count, for each tape entry, how many of its output
    // Tensors need gradients to be computed (Tensors which are not used do not need
    // any gradients to be computed).
    //
    // Finally, we start a backprop stack with a set of tape entries for which we
    // have all gradients available. This set usually is a subset of the set of
    C
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/collect/AbstractIterator.java

      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
        /** We have computed the next element and haven't returned it yet. */
        READY,
    
        /** We haven't yet computed or have already returned the element. */
        NOT_READY,
    
        /** We have reached the end of the data and are finished. */
        DONE,
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
Back to top