Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for functor_ (0.15 sec)

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

    // 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.
      tensorflow::StatusOr<TaggedValue> operator()(TaggedValue args,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/device_compilation_cluster_signature.cc

    #include <string>
    #include <utility>
    #include <variant>
    
    namespace tensorflow {
    namespace {
    using Signature = DeviceCompilationClusterSignature;
    using TensorTypeAndShape = Signature::TensorTypeAndShape;
    
    // Functor that converts a Signature's arg to a human readable string.
    struct SignatureHumanStringAppender {
      explicit SignatureHumanStringAppender(std::string* dest) : dest(dest) {}
      std::string* dest;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. testing/performance/src/templates/native-dependents/lib.cpp

    #include <iostream>
    #include "${generatedId}/header.h"
    
    int function_${generatedId}() {
        return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 105 bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents/header.h

    #ifndef HEADER_${generatedId}_H
    #define HEADER_${generatedId}_H
    
    <%
    includes.each { include ->
        out.println "#include \"$include\""
    }
    %>
    
    int function_${generatedId}();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 206 bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents/test_main.cpp

    #include "gtest/gtest.h"
    #include "${generatedId}/header.h"
    
    using namespace testing;
    <%
    if (hasTests) {
        out.println """
    TEST(GeneratedTests, test_lib) {
        ASSERT_EQ(0, function_${generatedId}());
    }"""
    }
    %>
    
    int main(int argc, char **argv) {
      testing::InitGoogleTest(&argc, argv);
      return RUN_ALL_TESTS();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 316 bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/kernels/xla_ops.h

     protected:
      // Indexes of compile-time constant inputs
      const std::vector<int> constants_;
      // Indexes of resource inputs
      const std::vector<int> resources_;
    
      const NameAttrList function_;
      const XlaPlatformInfo platform_info_;
    
      bool has_ref_vars_;
    };
    
    // XlaLocalLaunchOp is used to replace a region of the TensorFlow graph
    // which will be compiled and executed using XLA.  The XlaLocalLaunchOp is
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 23:44:26 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/jit/kernels/xla_ops.cc

          constants_(constants),
          resources_(resources),
          function_(function),
          platform_info_(XlaPlatformInfoFromDevice(ctx->device())),
          has_ref_vars_(has_ref_vars) {}
    
    void XlaLocalLaunchBase::ComputeAsync(OpKernelContext* ctx, DoneCallback done) {
      VLOG(1) << "XlaLocalLaunchOpBase::Compute "
              << Canonicalize(function_.name(), AttrSlice(&function_.attr()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py

         FileCheck checks in its file to check this output).
    
      This is only for use by the MLIR SavedModel importer tests.
    
      Args:
        create_signature: A functor that return signature_def_map, init_op and
          assets_collection. signature_def_map is a map from string key to
          signature_def. The key will be used as function name in the resulting
          MLIR.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

    #define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_GCS_CLEANUP_H_
    
    #include <type_traits>
    #include <utility>
    
    namespace tf_gcs_filesystem {
    
    // A move-only RAII object that calls a stored cleanup functor when
    // destroyed. Cleanup<F> is the return type of gtl::MakeCleanup(F).
    template <typename F>
    class Cleanup {
     public:
      Cleanup() : released_(true), f_() {}
    
      template <typename G>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 09 11:16:00 UTC 2020
    - 3.4K bytes
    - Viewed (0)
Back to top