Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TestSingleton (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/parallel_execute_to_islands_legacy.mlir

    // CHECK:      tf_executor.fetch [[ISLAND_0_OUTPUT]], [[ISLAND_1_CTRL]] :
    
    // -----
    
    // Tests a ParallelExecute with a single region.
    
    // CHECK-LABEL: func @testSingleton
    // CHECK-SAME: ([[ARG_0:%.+]]: tensor<i1>)
    func.func @testSingleton(%arg0 : tensor<i1>) {
      %0 = tf_executor.graph {
        %1:2 = tf_executor.island {
          %2 = "tf.opA"(%arg0) : (tensor<i1>) -> tensor<i1>
          tf_executor.yield %2 : tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/cc/experimental/libtf/impl/none_test.cc

    #include "tensorflow/cc/experimental/libtf/impl/none.h"
    
    #include "absl/container/flat_hash_set.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(NoneTest, TestSingleton) {
      None& a = None::GetInstance();
      None& b = None::GetInstance();
      EXPECT_EQ(&a, &b);
    }
    
    TEST(NoneTest, TestSupportsAbslHash) {
      absl::flat_hash_set<None> none_set;
      None& a = None::GetInstance();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 03 20:03:31 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/parallel_execute_to_islands.mlir

    // CHECK: tf_executor.fetch [[OUTPUT_1:%.*]], [[OUTPUT_3:%.*]]
    
    // -----
    
    // Tests a ParallelExecute with a single region.
    
    // CHECK-LABEL: func @testSingleton
    // CHECK-SAME: ([[ARG_0:%.+]]: tensor<i1>)
    func.func @testSingleton(%arg0 : tensor<i1>) {
      %0 = tf_executor.graph {
        %1:2 = tf_executor.island {
          %2 = "tf.opA"(%arg0) : (tensor<i1>) -> tensor<i1>
          tf_executor.yield %2 : tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. pkg/kube/krt/singleton_test.go

    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestSingleton(t *testing.T) {
    	c := kube.NewFakeClient()
    	ConfigMaps := krt.NewInformer[*corev1.ConfigMap](c)
    	stop := test.NewStop(t)
    	c.RunAndWait(stop)
    	cmt := clienttest.NewWriter[*corev1.ConfigMap](t, c)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java

            @Named
            static class MyMojo {
                @Inject
                Map<String, MyService> services;
            }
        }
    
        @Test
        void testSingleton() {
            Injector injector = Injector.create()
                    .bindImplicit(SingletonContainer.Bean1.class)
                    .bindImplicit(SingletonContainer.Bean2.class);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top