Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,991 for functor (0.13 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h

    // This header implements a family of generic predicate assertion
    // macros:
    //
    //   ASSERT_PRED_FORMAT1(pred_format, v1)
    //   ASSERT_PRED_FORMAT2(pred_format, v1, v2)
    //   ...
    //
    // where pred_format is a function or functor that takes n (in the
    // case of ASSERT_PRED_FORMATn) values and their source expression
    // text, and returns a testing::AssertionResult.  See the definition
    // of ASSERT_EQ in gtest.h for an example.
    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libtf/object.h

    // Template specialization that allows extracting arguments from a C function
    // pointer.
    template <class Fn, typename TReturn, typename... TFuncArgs>
    class CallableWrapper {
     private:
      Fn functor_;
      const char* name_;
    
     public:
      explicit CallableWrapper(Fn fn, const char* name)
          : functor_(fn), name_(name) {}
    
      // Entry point of the Adaptor functor. Note args, and kwargs are attempted
      // to be moved.
    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. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h

    // This header implements a family of generic predicate assertion
    // macros:
    //
    //   ASSERT_PRED_FORMAT1(pred_format, v1)
    //   ASSERT_PRED_FORMAT2(pred_format, v1, v2)
    //   ...
    //
    // where pred_format is a function or functor that takes n (in the
    // case of ASSERT_PRED_FORMATn) values and their source expression
    // text, and returns a testing::AssertionResult.  See the definition
    // of ASSERT_EQ in gtest.h for an example.
    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h

      // predicate, and its stderr output matches a user-supplied regular
      // expression.
      // The user-supplied predicate may be a macro expression rather
      // than a function pointer or functor, or else Wait and Passed could
      // be combined.
      virtual bool Passed(bool exit_status_ok) = 0;
    
      // Signals that the death test did not die as expected.
      virtual void Abort(AbortReason reason) = 0;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h

      // predicate, and its stderr output matches a user-supplied regular
      // expression.
      // The user-supplied predicate may be a macro expression rather
      // than a function pointer or functor, or else Wait and Passed could
      // be combined.
      virtual bool Passed(bool exit_status_ok) = 0;
    
      // Signals that the death test did not die as expected.
      virtual void Abort(AbortReason reason) = 0;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

            AtomicReference.class,
            AtomicBoolean.class,
            AtomicInteger.class,
            AtomicLong.class,
            AtomicDouble.class);
      }
    
      @SuppressWarnings("unchecked") // functor classes have no type parameters
      public void testGet_functors() {
        assertEquals(0, ArbitraryInstances.get(Comparator.class).compare("abc", 123));
        assertTrue(ArbitraryInstances.get(Predicate.class).apply("abc"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

      // above may invalidate previously inserted islands mid-loop.
      for (MergedIsland& island : merged_islands_)
        island_to_merged_island_.try_emplace(island.insert_point, &island);
    
      // This functor merges the given `old_merged_island` into the
      // `new_merged_island`. `merge_in_front` is whether the old island should be
      // merged into the front of the new island, or the back.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

            AtomicReference.class,
            AtomicBoolean.class,
            AtomicInteger.class,
            AtomicLong.class,
            AtomicDouble.class);
      }
    
      @SuppressWarnings("unchecked") // functor classes have no type parameters
      public void testGet_functors() {
        assertEquals(0, ArbitraryInstances.get(Comparator.class).compare("abc", 123));
        assertTrue(ArbitraryInstances.get(Predicate.class).apply("abc"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

            continue;
          }
    
          return symbol_use.getUser()
              ->emitError("exported function cannot be internally referenced")
              .attachNote(func.getLoc())
              .append("references this exported function");
        }
      }
      return success();
    }
    
    LogicalResult VerifyExportedFunc(func::FuncOp func) {
      bool reached_bound_inputs = false;
      auto module = func->getParentOfType<ModuleOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      return IsPureFunction(func_op);
    }
    
    bool OpSideEffectCollector::IsPureFunction(func::FuncOp func_op) const {
      auto it = is_pure_function_.find(func_op);
      if (it == is_pure_function_.end()) {
        bool is_pure = true;
        is_pure_function_[func_op] = is_pure;  // prevent infinite recursion
        func_op->walk([&](Operation* op) {
          if (op == func_op) {
            return WalkResult::advance();
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top