- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 5,668 for expect (0.26 sec)
-
tensorflow/c/c_api_test.cc
&Deallocator, &deallocator_called); EXPECT_FALSE(deallocator_called); EXPECT_EQ(TF_FLOAT, TF_TensorType(t)); EXPECT_EQ(2, TF_NumDims(t)); EXPECT_EQ(dims[0], TF_Dim(t, 0)); EXPECT_EQ(dims[1], TF_Dim(t, 1)); EXPECT_EQ(num_bytes, TF_TensorByteSize(t)); EXPECT_EQ(static_cast<void*>(values), TF_TensorData(t)); TF_DeleteTensor(t); EXPECT_TRUE(deallocator_called); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/eager/c_api_experimental_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); float product[4] = {0}; EXPECT_EQ(sizeof(product), TF_TensorByteSize(t)); memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t)); TF_DeleteTensor(t); EXPECT_EQ(7, product[0]); EXPECT_EQ(10, product[1]); EXPECT_EQ(15, product[2]); EXPECT_EQ(22, product[3]); TF_DeleteStatus(status); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_test.cc
TFE_TensorHandle* h = TestMatrixTensorHandle(ctx); EXPECT_EQ(TF_FLOAT, TFE_TensorHandleDataType(h)); TF_Tensor* t = TFE_TensorHandleResolve(h, status.get()); ASSERT_EQ(16, TF_TensorByteSize(t)); float data[4] = {0}; memcpy(&data[0], TF_TensorData(t), TF_TensorByteSize(t)); EXPECT_EQ(1.0, data[0]); EXPECT_EQ(2.0, data[1]); EXPECT_EQ(3.0, data[2]); EXPECT_EQ(4.0, data[3]); TF_DeleteTensor(t);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java
public void testMap() { SpliteratorTester.of( () -> CollectSpliterators.map( Arrays.spliterator(new String[] {"a", "b", "c", "d", "e"}), Ascii::toUpperCase)) .expect("A", "B", "C", "D", "E"); } public void testFlatMap() { SpliteratorTester.of( () -> CollectSpliterators.flatMap(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 4K bytes - Viewed (0) -
src/test/java/jcifs/tests/PACTest.java
String expect = "9121D44B1AD560C7A3152B3CAC453AB4"; testRC4HMac(5, data, key, expect); } /** * @param data * @param key * @param expect * @throws GeneralSecurityException * @throws PACDecodingException */
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Oct 01 12:01:17 GMT 2023 - 22.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
throw Throwables.propagate(t); } } }; // Expect the undeclared exception to have been chained inside another RuntimeException expected = assertThrows(RuntimeException.class, () -> sample.noneDeclared()); assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class); } @GwtIncompatible // throwIfInstanceOf
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
throw Throwables.propagate(t); } } }; // Expect the undeclared exception to have been chained inside another RuntimeException expected = assertThrows(RuntimeException.class, () -> sample.noneDeclared()); assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class); } @GwtIncompatible // throwIfInstanceOf
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 23.6K bytes - Viewed (0) -
callbacks/helper_test.go
"active": true, }, expect: clause.Values{ Columns: []clause.Column{{Name: "active"}}, Values: [][]interface{}{{true}}, }, }, } for _, tc := range testCase { t.Run(tc.name, func(t *testing.T) { actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input) if !reflect.DeepEqual(actual, tc.expect) { t.Errorf("expect %v got %v", tc.expect, actual) } }) } }
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Tue Mar 05 02:22:57 GMT 2024 - 3.4K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/listener_test.go
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Sep 11 15:29:30 GMT 2023 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ParameterUtilTest.java
String value; String expect; value = null; expect = ""; assertEquals(expect, ParameterUtil.encrypt(value)); value = ""; expect = ""; assertEquals(expect, ParameterUtil.encrypt(value)); value = "\n"; expect = ""; assertEquals(expect, ParameterUtil.encrypt(value)); value = "=";
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 7.1K bytes - Viewed (0)