Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for asarray (0.16 sec)

  1. tensorflow/c/experimental/ops/BUILD

    package(
        # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
        licenses = ["notice"],
    )
    
    cc_library(
        name = "array_ops",
        srcs = [
            "array_ops.cc",
        ],
        hdrs = [
            "array_ops.h",
        ],
        visibility = [
            "//tensorflow:internal",
        ],
        deps = [
            "//tensorflow/c/eager:abstract_context",
    Plain Text
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Nov 17 15:20:54 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get());
    
      // Copy Tensor data into an array.
      float result_data[4] = {0};
      memcpy(&result_data[0], TF_TensorData(result_tensor),
             TF_TensorByteSize(result_tensor));
    
      int data_len = 4;  // length of result_data
      for (int i = 0; i < data_len; i++) {
    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/eager/parallel_device/parallel_device_remote_test.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include <array>
    #include <memory>
    #include <string>
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/c_api_experimental.h"
    #include "tensorflow/c/eager/c_api.h"
    #include "tensorflow/c/eager/c_api_experimental.h"
    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)
  4. tensorflow/c/experimental/gradients/nn_grad.cc

    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    #include "tensorflow/c/eager/immediate_execution_context.h"
    #include "tensorflow/c/eager/immediate_execution_tensor_handle.h"
    #include "tensorflow/c/experimental/ops/array_ops.h"
    #include "tensorflow/c/experimental/ops/math_ops.h"
    #include "tensorflow/c/experimental/ops/nn_ops.h"
    #include "tensorflow/core/lib/llvm_rtti/llvm_rtti.h"
    #include "tensorflow/core/platform/errors.h"
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.h

    // Execute the operation defined by 'op' and return handles to computed
    // tensors in `retvals`.
    //
    // 'retvals' must point to a pre-allocated array of TFE_TensorHandle* and
    // '*num_retvals' should be set to the size of this array. It is an error if
    // the size of 'retvals' is less than the number of outputs. This call sets
    // *num_retvals to the number of outputs.
    //
    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)
  6. tensorflow/c/c_api.cc

    #include "tensorflow/core/framework/versions.pb.h"
    #include "tensorflow/core/graph/graph.h"
    #include "tensorflow/core/graph/node_builder.h"
    #include "tensorflow/core/graph/validate.h"
    #include "tensorflow/core/lib/gtl/array_slice.h"
    #include "tensorflow/core/platform/coding.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/mem.h"
    #include "tensorflow/core/platform/mutex.h"
    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)
  7. tensorflow/c/eager/parallel_device/parallel_device_test.cc

        // Try to extract the wrong number of components from a parallel tensor
        std::array<TFE_TensorHandle*, 1> correct_components{value_one.get()};
        TensorHandlePtr combined_value = CreatePerDeviceValues(
            context.get(), correct_components, device_name, status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
        std::array<TensorHandlePtr, 2> incorrect_components;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  8. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

    void ExtractPerDeviceValues(
        TFE_Context* context, TFE_TensorHandle* input,
        std::array<TensorHandlePtr, num_replicas>* components, TF_Status* status);
    
    // Helper to pack `num_replicas` TFE_TensorHandles into one parallel handle.
    template <std::size_t num_replicas>
    TensorHandlePtr CreatePerDeviceValues(
        TFE_Context* context,
        const std::array<TFE_TensorHandle*, num_replicas>& components,
        const char* device, TF_Status* status);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/c/eager/parallel_device/parallel_device_testlib.h"
    
    #include <array>
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/c_api_experimental.h"
    #include "tensorflow/c/eager/c_api.h"
    #include "tensorflow/c/eager/c_api_experimental.h"
    #include "tensorflow/core/platform/test.h"
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  10. tensorflow/c/c_api.h

    //  num_opers - `num_opers` contains the number of elements in the `opers` array
    //              or a special value of -1 meaning that no array is given.
    //              The distinction between an empty array of operations and no
    //              array of operations is necessary to distinguish the case of
    //              creating a function with no body (e.g. identity or permutation)
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
Back to top