Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for assertMet (0.94 sec)

  1. tensorflow/c/c_api_test.cc

      TF_Operation* a = Placeholder(graph, s, "A");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* b = Placeholder(graph, s, "B");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* two = ScalarConst(2, graph, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* plus2 = Add(a, two, graph, s, "plus2");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_name, nullptr);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    
      TF_SetStatus(status.get(), TF_OK, "");
    
      int num_dims = TFE_TensorHandleNumDims(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(num_dims, -1);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_function_test.cc

      ASSERT_EQ(1, grads.size());
      ASSERT_EQ(func_name_, grads[0].first);
      ASSERT_EQ("MyGrad", grads[0].second);
    
      // These calls must be noops
      TF_GraphCopyFunction(host_graph_, func_, grad_func, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      TF_GraphCopyFunction(host_graph_, func_, nullptr, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      // Delete the gradient func.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

      }
    };
    
    // This specialization is used when the first argument to ASSERT_EQ()
    // is a null pointer literal, like NULL, false, or 0.
    template <>
    class EqHelper<true> {
     public:
      // We define two overloaded versions of Compare().  The first
      // version will be picked when the second argument to ASSERT_EQ() is
      // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or
      // EXPECT_EQ(false, a_bool).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

      }
    };
    
    // This specialization is used when the first argument to ASSERT_EQ()
    // is a null pointer literal, like NULL, false, or 0.
    template <>
    class EqHelper<true> {
     public:
      // We define two overloaded versions of Compare().  The first
      // version will be picked when the second argument to ASSERT_EQ() is
      // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or
      // EXPECT_EQ(false, a_bool).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  6. tensorflow/c/kernels_test.cc

        TF_EXPECT_OK(status);
        ASSERT_NE(nullptr, kernel.get());
    
        p.op_kernel = kernel.get();
        OpKernelContext ctx(&p);
        kernel->Compute(&ctx);
    
        ASSERT_EQ(2, num_inputs);
        ASSERT_EQ(1, num_outputs);
        ASSERT_EQ(123, ctx.mutable_output(0)->scalar<tensorflow::uint8>()());
      }
    }
    
    TEST(TestKernel, DeleteKernelBuilderIsOkOnNull) {
      TF_DeleteKernelBuilder(nullptr);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      absl::flat_hash_map<string, std::vector<string>> cluster_sets =
          GetClusterSets(*graph);
      ASSERT_EQ(cluster_sets.size(), 1);
      std::vector<string> expected_clustered_nodes = {"AssignmentW", "ReadR",
                                                      "ValueToAssignW"};
      ASSERT_EQ(cluster_sets.begin()->second, expected_clustered_nodes);
    }
    
    TEST(XlaCompilationTest, ResourcesClusteringDisallowed) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  8. src/cmd/internal/testdir/testdir_test.go

    	// Build tags separated by a space are OR-ed together.
    	assertNot(shouldTest("// +build arm 386", "linux", "amd64"))
    
    	// Build tags separated by a comma are AND-ed together.
    	assertNot(shouldTest("// +build !windows,!plan9", "windows", "amd64"))
    	assertNot(shouldTest("// +build !windows,!plan9", "plan9", "386"))
    
    	// Build tags on multiple lines are AND-ed together.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  9. cmd/object-api-multipart_test.go

    		// `KeyMarker` is set, no MultipartInfo expected.
    		// ListMultipartUploads doesn't list the parts.
    		// `Maxupload` value is asserted.
    		{
    			MaxUploads: 100,
    			KeyMarker:  "orange",
    		},
    		// listMultipartResults - 4.
    		// `KeyMarker` is set, no MultipartInfo expected.
    		// Maxupload value is asserted.
    		{
    			MaxUploads: 1,
    			KeyMarker:  "orange",
    		},
    		// listMultipartResults - 5.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  10. src/crypto/x509/x509.go

    	// RFC 5280, 4.2.1.9:
    	// "If the basic constraints extension is not present in a version 3
    	// certificate, or the extension is present but the cA boolean is not
    	// asserted, then the certified public key MUST NOT be used to verify
    	// certificate signatures."
    	if parent.Version == 3 && !parent.BasicConstraintsValid ||
    		parent.BasicConstraintsValid && !parent.IsCA {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
Back to top