Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Execute (0.18 sec)

  1. tensorflow/c/eager/c_api_test.cc

      EXPECT_EQ(10, product[1]);
      EXPECT_EQ(15, product[2]);
      EXPECT_EQ(22, product[3]);
      TF_DeleteStatus(status);
    }
    TEST(CAPI, Execute_MatMul_CPU) { Execute_MatMul_CPU(false); }
    TEST(CAPI, Execute_MatMul_CPUAsync) { Execute_MatMul_CPU(true); }
    
    void Execute_MatMul_CPU_Runtime_Error(bool async) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
    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)
  2. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TF_AbstractTensor* inputs[2] = {at, at};
      TF_OutputList* o = TF_NewOutputList();
      TF_OutputListSetNumOutputs(o, 1, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // Execute.
      TF_ExecuteOperation(op, 2, inputs, o, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // Clean up operation and inputs.
      TF_DeleteAbstractOp(op);
    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)
  3. tensorflow/c/experimental/gradients/tape/tape_operation.cc

          "implemented yet.");
    }
    AbstractOperation* TapeOperation::GetBackingOperation() { return parent_op_; }
    Status TapeOperation::Execute(absl::Span<AbstractTensorHandle*> retvals,
                                  int* num_retvals) {
      TF_RETURN_IF_ERROR(parent_op_->Execute(retvals, num_retvals));
      for (int i = 0; i < *num_retvals; i++) {
        // TODO(srbs): Manage refcount of ForwardOperation's inputs/outputs.
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  4. tensorflow/c/eager/custom_device_test.cc

      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      executed = false;
      TFE_Execute(op.get(), &var_handle, &num_retvals, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      ASSERT_TRUE(executed);
      auto handle_cleaner = tensorflow::gtl::MakeCleanup(
          [var_handle]() { TFE_DeleteTensorHandle(var_handle); });
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental_test.cc

        TFE_OpAddInput(op, h, status);
        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
    
        std::vector<TFE_TensorHandle*> result;
        result.push_back(nullptr);
        int num_retvals = 1;
        TFE_Execute(op, result.data(), &num_retvals, status);
        TFE_DeleteOp(op);
        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        ASSERT_EQ(num_retvals, 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/eager/c_api.h

    // is done.
    // TODO(agarwal): change num_retvals to int from int*.
    TF_CAPI_EXPORT extern void TFE_Execute(TFE_Op* op, TFE_TensorHandle** retvals,
                                           int* num_retvals, TF_Status* status);
    
    // Add a function (serialized FunctionDef protocol buffer) to ctx so
    // that it can be invoked using TFE_Execute.
    TF_CAPI_EXPORT extern void TFE_ContextAddFunctionDef(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // expected.
      tf_gcs_filesystem::RamFileBlockCache cache1(
          8, 16, 2 /* max staleness */, fetcher,
          [&env]() { return env->NowSeconds(); });
      // Execute the first read to load the block.
      TF_EXPECT_OK(ReadCache(&cache1, "", 0, 1, &out));
      EXPECT_EQ(calls, 1);
      // Now advance the clock one second at a time and redo the read. The call
    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. SECURITY.md

    programs that TensorFlow executes. TensorFlow programs are encoded as
    computation
    [**graphs**](https://developers.google.com/machine-learning/glossary/#graph).
    Since models are practically programs that TensorFlow executes, using untrusted
    models or graphs is equivalent to running untrusted code.
    
    If you need to run untrusted models, execute them inside a
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Sun Oct 01 06:06:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_unified_experimental.h

    // -----------------------------------------------------------------------------
    // Core APIs
    // -----------------------------------------------------------------------------
    
    // A TF_ExecutionContext stores knowledge about how to execute an operation.
    // E.g. it could know whether we're in eager mode or graph mode, keeps track
    // of gradient tapes, etc.
    typedef struct TF_ExecutionContext TF_ExecutionContext;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  10. ci/official/utilities/cleanup_docker.sh

    cat <<EOF
    IMPORTANT: These tests ran under docker. This script does not clean up the
    container for you! You can delete the container with:
    
    $ docker rm -f tf
    
    You can also execute more commands within the container with e.g.:
    
    $ docker exec tf bazel clean
    $ docker exec -it tf bash
    EOF
    
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 10 20:26:29 GMT 2023
    - 998 bytes
    - Viewed (0)
Back to top