Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 184 for capsule (0.37 sec)

  1. tensorflow/cc/experimental/libtf/value.h

        return v;
      }
    
      /// Constructs a TaggedValue with type CAPSULE with a default destructor.
      template <class T>
      static TaggedValue Capsule(T* data) {
        return Capsule(static_cast<void*>(data),
                       [](void* x) { delete static_cast<T*>(x); });
      }
      /// Constructs a TaggedValue with type CAPSULE with a custom destructor.
      static TaggedValue Capsule(void* data, void (*deleter)(void*)) {
        TaggedValue v;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libtf/object.h

    };
    
    namespace internal {
    /// @brief The Capsule class for holding pointers.
    class Capsule final : public Handle {
     public:
      /// Statically cast the TaggedValue capsule to type `T`.
      template <class T>
      T cast() {
        return static_cast<T>(value_.capsule());
      }
    
     private:
      // Private since it is in general unsafe.
      explicit Capsule(TaggedValue v) : Handle(std::move(v)) {}
      template <class T>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/UnitOfWork.java

             */
            File getWorkspace();
    
            /**
             * For work capable of incremental execution this is the object to query per-property changes through;
             * {@link Optional#empty()} for non-incremental-capable work.
             */
            Optional<InputChangesInternal> getInputChanges();
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
            .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture())
            .testEquals();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
            .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture())
            .testEquals();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/tf_concrete_function_loading_test.cc

      EXPECT_EQ(status.code(), error::FAILED_PRECONDITION) << status.message();
    }
    
    // A SavedConcreteFunction whose capture refers to an index not in the capture
    // map should cause an error.
    TEST_F(SavedConcreteFunctionLoadingTest, ImproperCaptureIndex) {
      // `saved` has 3 inputs, 1 capture, for a total of 4 inputs
      SavedConcreteFunction saved;
      *saved.mutable_canonicalized_input_signature() =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. internal/s3select/sql/parser.go

    import (
    	"strings"
    
    	"github.com/alecthomas/participle"
    	"github.com/alecthomas/participle/lexer"
    )
    
    // Types with custom Capture interface for parsing
    
    // Boolean is a type for a parsed Boolean literal
    type Boolean bool
    
    // Capture interface used by participle
    func (b *Boolean) Capture(values []string) error {
    	*b = Boolean(strings.EqualFold(values[0], "true"))
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/TypeResolver.java

       * {@code ArrayList<?>::set}.
       *
       * <p>Instead, {@code <?>} will be resolved to a capture in the form of a type variable {@code
       * <capture-of-? extends Object>}, effectively preventing {@code set} from accepting any type.
       */
      static TypeResolver invariantly(Type contextType) {
        Type invariantContext = WildcardCapturer.INSTANCE.capture(contextType);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/services/DefaultLoggingManagerTest.groovy

            loggingManager.getLevel() == null
        }
    
        public void "can change standard out capture log level"() {
            when:
            loggingManager.captureStandardOutput(LogLevel.ERROR)
    
            then:
            loggingManager.getStandardOutputCaptureLevel() == LogLevel.ERROR
        }
    
        public void "can change standard error capture log level"() {
            when:
            loggingManager.captureStandardError(LogLevel.WARN)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/TypeResolver.java

       * {@code ArrayList<?>::set}.
       *
       * <p>Instead, {@code <?>} will be resolved to a capture in the form of a type variable {@code
       * <capture-of-? extends Object>}, effectively preventing {@code set} from accepting any type.
       */
      static TypeResolver invariantly(Type contextType) {
        Type invariantContext = WildcardCapturer.INSTANCE.capture(contextType);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
Back to top