Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 114 for assertGet (0.18 sec)

  1. tensorflow/c/experimental/gradients/custom_gradient_test.cc

        Status s =
            BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      // Pseudo-code:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/reflectdata/helpers.go

    		return true
    	}
    
    	return false
    }
    
    // assertOp asserts that n is an op.
    func assertOp(n ir.Node, op ir.Op) {
    	base.AssertfAt(n.Op() == op, n.Pos(), "want %v, have %v", op, n)
    }
    
    // assertOp2 asserts that n is an op1 or op2.
    func assertOp2(n ir.Node, op1, op2 ir.Op) {
    	base.AssertfAt(n.Op() == op1 || n.Op() == op2, n.Pos(), "want %v or %v, have %v", op1, op2, n)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

            }
    
        repr_ds = data_gen()
        self.assertIsNone(repr_dataset.get_num_samples(repr_ds))
    
        # Make sure that the __next__() is never called during the
        # get_num_samples call.
        self.assertLen(list(repr_ds), num_samples)
    
      def test_get_num_samples_returns_none_when_len_raises_error(self):
        class LenRaisingError:
          """A test-only class that raises an error when len() is called.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      EXPECT_EQ(xla_device_assignment->computation_count(), 2);
      ASSERT_EQ(xla_device_assignment->computation_devices_size(), 2);
      const auto& computation_device_0 =
          xla_device_assignment->computation_devices(0);
      ASSERT_EQ(computation_device_0.replica_device_ids_size(), 4);
      const auto& computation_device_1 =
          xla_device_assignment->computation_devices(1);
      ASSERT_EQ(computation_device_1.replica_device_ids_size(), 4);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy

        @Override
        void resetExpectations() {
            try {
                if (failure != null) {
                    throw failure
                }
                for (ServerExpectation e in expectations) {
                    e.assertMet()
                }
            } finally {
                failure = null
                expectations.clear()
            }
        }
    
        @Override
        protected void after() {
            stop()
            resetExpectations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. 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)
  10. cni/pkg/util/pluginutil.go

    // Given an unmarshalled CNI config JSON map, return the plugin list asserted as a []interface{}
    func GetPlugins(cniConfigMap map[string]any) (plugins []any, err error) {
    	plugins, ok := cniConfigMap["plugins"].([]any)
    	if !ok {
    		err = fmt.Errorf("error reading plugin list from CNI config")
    		return
    	}
    	return
    }
    
    // Given the raw plugin interface, return the plugin asserted as a map[string]interface{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top