Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for eq (0.16 sec)

  1. tensorflow/c/c_api_test.cc

      EXPECT_EQ(TF_INT32, TF_OperationOutputType(TF_Output{add, 0}));
      EXPECT_EQ(1, TF_OperationOutputListLength(add, "sum", s));
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(2, TF_OperationNumInputs(add));
      EXPECT_EQ(2, TF_OperationInputListLength(add, "inputs", s));
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(TF_INT32, TF_OperationInputType(TF_Input{add, 0}));
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 1);
      EXPECT_EQ(num_compute_calls, 2);
      cache2.LookupOrCompute("c", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 2);
      EXPECT_EQ(num_compute_calls, 3);
      cache2.LookupOrCompute("d", &value, compute_func, &status);
      TF_EXPECT_OK(status.status);
      EXPECT_EQ(value, 3);
      EXPECT_EQ(num_compute_calls, 4);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/c/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      TF_OutputListSetNumOutputs(mm_outputs, 1, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TF_ExecuteOperation(fn_op, 1, &input_t, mm_outputs, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      ASSERT_EQ(1, TF_OutputListNumOutputs(mm_outputs));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_type, nullptr);
      ASSERT_EQ("Invalid handle", string(TF_Message(status.get())));
    
      TF_SetStatus(status.get(), TF_OK, "");
    
      int device_id = TFE_TensorHandleDeviceID(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      ASSERT_EQ(device_id, -1);
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      TF_EXPECT_OK(ReadCache(&cache, "a", 0, n, &out));
      EXPECT_EQ(out, a);
      EXPECT_EQ(calls, 1);
      TF_EXPECT_OK(ReadCache(&cache, "a", 8, n, &out));
      EXPECT_EQ(out, A);
      EXPECT_EQ(calls, 2);
      TF_EXPECT_OK(ReadCache(&cache, "b", 0, n, &out));
      EXPECT_EQ(out, b);
      EXPECT_EQ(calls, 3);
      TF_EXPECT_OK(ReadCache(&cache, "b", 8, n, &out));
      EXPECT_EQ(out, B);
      EXPECT_EQ(calls, 4);
      // All four blocks should be in the cache now.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/gradients/nn_grad_test.cc

        status_ = StatusFromTF_Status(status.get());
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    
        {
          AbstractContext* ctx_raw = nullptr;
          status_ =
              BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
          ASSERT_EQ(errors::OK, status_.code()) << status_.message();
          immediate_execution_ctx_.reset(ctx_raw);
        }
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/dlpack_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      const DLTensor* dltensor_out = &dlm_out->dl_tensor;
      EXPECT_EQ(dltensor_out->device.device_type, dltensor_in->device.device_type);
      EXPECT_EQ(dltensor_out->device.device_id, dltensor_in->device.device_id);
      EXPECT_EQ(dltensor_out->ndim, dltensor_in->ndim);
      EXPECT_EQ(dltensor_out->dtype.code, dltensor_in->dtype.code);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_debug_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_TensorHandle* h = TestScalarTensorHandle(ctx, 1.0f);
      TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      ASSERT_EQ(0, TFE_TensorDebugInfoOnDeviceNumDims(debug_info));
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      if (GetParam().empty()) {
        EXPECT_EQ(fs->TranslateName(""), "");
        EXPECT_EQ(fs->TranslateName("/"), "/");
        EXPECT_EQ(fs->TranslateName("//"), "/");
        // Empty scheme also allows relative paths
        EXPECT_EQ(fs->TranslateName("a_file"), "a_file");
        EXPECT_EQ(fs->TranslateName("a_dir/.."), ".");
      } else {
        EXPECT_EQ(fs->TranslateName(tensorflow::strings::StrCat(GetParam(), "://")),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top