Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for assertj (0.19 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      std::unique_ptr<tensorflow::GrpcServer> worker_server1;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server1)
                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. 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);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_debug_test.cc

      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));
    
      TFE_DeleteTensorDebugInfo(debug_info);
      TFE_DeleteTensorHandle(h);
      TFE_DeleteContext(ctx);
      TF_DeleteStatus(status);
    }
    
    TEST(CApiDebug, 2DCPU) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental.cc

      static FactoriesMap* factories = new FactoriesMap;
      return *factories;
    }
    
    static tracing::FactoryFunction default_factory;
    
    void RegisterTracingEngineFactory(const string& name, FactoryFunction factory) {
      assert((!GetFactories().count(name)) ||
             (GetFactories()[name] == factory) &&
                 "Duplicate tracing factory registration");
      GetFactories()[name] = factory;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

          // Adding the gradients to the graph can alter the prefix to prevent
          // name collisions only if this prefix has not been provided explicitly
          // by the user. If it was provided, assert that it remained intact.
          if (prefix != nullptr && !absl::StartsWith(n->name(), prefix_cmp)) {
            status->status = tensorflow::errors::Internal(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/math_grad_test.cc

        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 2.0f, &x_raw);
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        x.reset(x_raw);
      }
    
      status_ = registry_.Register("Exp", ExpRegisterer);
      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    
      ASSERT_NO_FATAL_FAILURE(CompareNumericalAndAutodiffGradients(
          ExpModel, BuildGradModel(ExpModel, registry_),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

                {"subdiv_offsets", std::vector<int>()}},
               /*dep=*/{"assert"}},
          });
      TF_ASSERT_OK(ContextFromInterface(unwrap(context.get()))
                       ->AddFunctionDef(assert_and_collective));
    
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> call_op(
          TFE_NewOp(context.get(), "AssertAndCollective", status.get()),
          TFE_DeleteOp);
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/gradients/grad_test_helper.cc

      auto s = GetValue(t, &analytical_tensor);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      int64_t num_elem_analytical = 1;
      auto num_dims_analytical = TF_NumDims(analytical_tensor);
      ASSERT_EQ(dims.size(), num_dims_analytical);
      for (int j = 0; j < num_dims_analytical; j++) {
        auto dim_analytical = TF_Dim(analytical_tensor, j);
        ASSERT_EQ(dims[j], dim_analytical);
        num_elem_analytical *= dim_analytical;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_Op* op = TFE_NewOp(ctx, "ReadVariableOp", status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpSetAttrType(op, "dtype", TF_FLOAT);
      TFE_OpAddInput(op, var, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      int num_retvals = 1;
      TFE_Execute(op, out_value, &num_retvals, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteOp(op);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_remote_test.cc

      string serialized = server_def.SerializeAsString();
    
      server_def.set_task_index(1);
    
      std::unique_ptr<tensorflow::GrpcServer> worker_server;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server)
                      .ok());
      ASSERT_TRUE(worker_server->Start().ok());
    
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
Back to top