Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for assertLen (0.15 sec)

  1. tensorflow/c/eager/dlpack_test.cc

      TFE_TensorHandle* handle = TFE_HandleFromDLPack(&dlm_in, status, ctx);
      ASSERT_NE(handle, nullptr)
          << TF_Message(status) << " (shape=[" << absl::StrJoin(shape, ",")
          << "], strides=[" << absl::StrJoin(strides, ",") << "])";
    
      auto* dlm_out =
          static_cast<DLManagedTensor*>(TFE_HandleToDLPack(handle, status));
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Jun 30 03:04:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients_test.cc

      ASSERT_EQ(errors::OK, s.code()) << s.message();
      if (isa<TracingOperation>(check_numerics_op.get())) {
        s = dyn_cast<TracingOperation>(check_numerics_op.get())
                ->SetOpName("check_numerics");
        ASSERT_EQ(errors::OK, s.code()) << s.message();
      }
      s = AddInput(check_numerics_op.get(), t.get(), &forward_op);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_remote_test_util.cc

        matmul = TFE_NewOp(ctx, "MatMulFunction", status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        TFE_OpAddInput(matmul, h0_task0, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        TFE_OpAddInput(matmul, has_packed_input ? packed_handle : h1_task2, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      } else {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

                      }
                    }));
        assertGet(k0(), v0(), v3(), v4());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAllNonEmptyCollectionOnPresentKey() {
        assertTrue(multimap().putAll(k0(), Lists.newArrayList(v3(), v4())));
        assertGet(k0(), v0(), v3(), v4());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        List<V> values = asList(v0(), null, v3());
        multimap().replaceValues(k0(), values);
        assertGet(k0(), values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testReplaceValuesWithNullKey() {
        List<V> values = asList(v0(), v2(), v3());
        multimap().replaceValues(null, values);
        assertGet(null, values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradient_checker_test.cc

                              &numerical_grad_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        numerical_grad.reset(numerical_grad_raw);
      }
    
      TF_Tensor* numerical_tensor;
      s = GetValue(numerical_grad.get(), &numerical_tensor);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      auto num_elem_numerical = TF_TensorElementCount(numerical_tensor);
      ASSERT_EQ(num_elem_numerical, num_grad);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_remote_test.cc

      auto* h0_task1 =
          TFE_TensorHandleCopyToDevice(h0_task0, ctx, remote_device_name, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      auto* h1_task1 =
          TFE_TensorHandleCopyToDevice(h1_task0, ctx, remote_device_name, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TFE_Op* matmul = MatMulOp(ctx, h0_task1, h1_task1);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Aug 12 00:14:22 UTC 2020
    - 5.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        extends AbstractMultimapTester<K, V, ListMultimap<K, V>> {
    
      @Override
      protected void assertGet(K key, V... values) {
        assertGet(key, asList(values));
      }
    
      @Override
      protected void assertGet(K key, Collection<? extends V> values) {
        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        int size = getNumElements();
    
        assertGet(k3(), ImmutableList.<V>of());
    
        assertTrue(multimap().put(k3(), v3()));
    
        assertGet(k3(), v3());
        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresent() {
        int size = getNumElements();
    
        assertGet(k0(), v0());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        int size = getNumElements();
    
        assertGet(k3(), ImmutableList.<V>of());
    
        assertTrue(multimap().put(k3(), v3()));
    
        assertGet(k3(), v3());
        assertEquals(size + 1, multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresent() {
        int size = getNumElements();
    
        assertGet(k0(), v0());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top