Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for out (0.17 sec)

  1. tensorflow/c/eager/dlpack_test.cc

      EXPECT_EQ(dltensor_out->dtype.bits, dltensor_in->dtype.bits);
      EXPECT_EQ(dltensor_out->dtype.lanes, dltensor_in->dtype.lanes);
      for (int i = 0; i < dltensor_in->ndim; ++i) {
        EXPECT_EQ(dltensor_out->shape[i], dltensor_in->shape[i]);
        if (dltensor_out->strides) {
          if (i == dltensor_in->ndim - 1) {
            EXPECT_EQ(dltensor_out->strides[i], 1);
          } else {
    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)
  2. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

        std::array<TensorHandlePtr, 2> out_components;
        ExtractPerDeviceValues(context.get(), multiply_result.get(),
                               &out_components, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
        ExpectScalarEq<float>(out_components[0].get(), 9.);
        ExpectScalarEq<float>(out_components[1].get(), 4.);
      }
    
      worker_server1.release();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc

      std::remove(name_.c_str());
    }
    
    const std::string TempFile::getName() const { return name_; }
    
    bool TempFile::truncate() {
      std::fstream::close();
      std::fstream::open(name_, std::ios::binary | std::ios::out);
      return std::fstream::is_open();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 26 14:56:58 GMT 2020
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

        }
      }
    }
    
    int TF_OperationOutputNumConsumers(TF_Output oper_out) {
      int count = 0;
      for (const auto* edge : oper_out.oper->node.out_edges()) {
        if (edge->src_output() == oper_out.index) {
          ++count;
        }
      }
      return count;
    }
    
    int TF_OperationOutputConsumers(TF_Output oper_out, TF_Input* consumers,
                                    int max_consumers) {
      int count = 0;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_DeleteExecutor(executor);
      TF_DeleteStatus(status);
    }
    
    // Read the value of variable `var` and save it into `out_value`.
    void ReadVariable(TFE_Context* ctx, TFE_TensorHandle* var,
                      TFE_TensorHandle** out_value) {
      TF_Status* status = TF_NewStatus();
      TFE_Op* op = TFE_NewOp(ctx, "ReadVariableOp", status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_remote_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      TFE_DeleteContext(ctx);
    
      TF_DeleteStatus(status);
    
      // TODO(b/136478427): Figure out how to correctly shut the server down.
      worker_server.release();
    }
    
    TEST(CAPI, RemoteExecute) { TestRemoteExecute(false); }
    TEST(CAPI, RemoteExecuteAsync) { TestRemoteExecute(true); }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 12 00:14:22 GMT 2020
    - 5.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      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.
      TF_EXPECT_OK(ReadCache(&cache, "a", 0, n, &out));
      EXPECT_EQ(out, a);
      TF_EXPECT_OK(ReadCache(&cache, "a", 8, n, &out));
      EXPECT_EQ(out, A);
      TF_EXPECT_OK(ReadCache(&cache, "b", 0, n, &out));
      EXPECT_EQ(out, b);
    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)
  8. tensorflow/c/c_api_experimental.cc

    // GraphDef type. These functions must be deleted by calling TF_DeleteFunction.
    //
    // If `mutate_proto_func` is non-NULL, run it over each FunctionDef proto,
    // before creating a TF_Function out of the possibly mutated proto.
    static std::vector<UniqueFuncPtr> CreateFunctionsFromTextProto(
        const char* text_proto,
        std::function<void(FunctionDef*)>* mutate_proto_func, TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/math_grad_test.cc

          ExpModel, BuildGradModel(ExpModel, registry_),
          immediate_execution_ctx_.get(), {x.get()}, UseFunction()));
    }
    
    TEST_P(CppGradients, TestMatMulGrad) {
      // TODO(vnvo2409): Figure out why `gradient_checker` does not work very
      // well with `MatMul` and remove `TestMatMul*` in
      // `mnist_gradients_test` when done.
      GTEST_SKIP();
    
    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)
  10. tensorflow/c/checkpoint_reader.cc

        const string& name, std::unique_ptr<tensorflow::Tensor>* out_tensor,
        TF_Status* out_status) const {
      Status status;
      if (reader_ != nullptr) {
        status = reader_->GetTensor(name, out_tensor);
      } else {
        tensorflow::DataType dtype;
        tensorflow::TensorShape shape;
        status = v2_reader_->LookupDtypeAndShape(name, &dtype, &shape);
        if (status.ok()) {
          out_tensor->reset(new Tensor(dtype, shape));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
Back to top