Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 74 for enum (0.12 sec)

  1. tensorflow/c/eager/gradient_checker_test.cc

      ASSERT_EQ(errors::OK, s.code()) << s.message();
      auto num_elem_numerical = TF_TensorElementCount(numerical_tensor);
      ASSERT_EQ(num_elem_numerical, num_grad);
    
      float* dnumerical = new float[num_elem_numerical]{0};
      memcpy(&dnumerical[0], TF_TensorData(numerical_tensor),
             TF_TensorByteSize(numerical_tensor));
    
      for (int j = 0; j < num_grad; j++) {
        ASSERT_NEAR(dnumerical[j], expected_grad[j], abs_error);
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental_test.cc

        CHECK_EQ(output_shapes->num_items, 1);
    
        int num_dims = output_shapes->items[0].num_dims;
        int64_t* dims = output_shapes->items[0].dims;
    
        if (!expected_shape.has_value()) {
          EXPECT_EQ(num_dims, -1);
          EXPECT_EQ(dims, nullptr);
          return;
        }
    
        EXPECT_EQ(num_dims, expected_shape->size());
        for (size_t i = 0; i < num_dims; ++i) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  3. tensorflow/c/eager/c_api_remote_test_util.cc

      TFE_TensorHandle* packed_handle = nullptr;
      if (has_packed_input) {
        int num_replicas = 1;
        std::vector<TFE_TensorHandle*> packed_handles = {h1_task2};
        packed_handle = TFE_CreatePackedTensorHandle(ctx, packed_handles.data(),
                                                     &num_replicas, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      }
    
      TFE_Op* matmul = nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental.cc

    }
    
    TF_Tensor* TFE_AllocateHostTensor(TFE_Context* ctx, TF_DataType dtype,
                                      const int64_t* dims, int num_dims,
                                      TF_Status* status) {
      std::vector<int64_t> dimvec(num_dims);
      for (int i = 0; i < num_dims; ++i) {
        dimvec[i] = static_cast<int64_t>(dims[i]);
      }
    
      if (ctx == nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  5. tensorflow/c/experimental/next_pluggable_device/c_api.h

    // 0 for num_options if no options need to be set. You can use
    // ConvertToPjRtNamedValueList in
    // tensorflow/compiler/xla/pjrt/c/pjrt_c_api_helpers.h to generate the options.
    TF_CAPI_EXPORT extern void TF_CreateAndSetPjRtCApiClient(
        const char* device_type, TF_Status* status, PJRT_NamedValue* create_options,
        int num_options);
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Dec 20 20:01:06 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/c/eager/unified_api_testutil.cc

          AbstractFunction* func = nullptr;
          OutputList output_list;
          output_list.expected_num_outputs = 0;
          output_list.outputs.reserve(outputs.size());
          for (int i = 0; i < model_outputs.size(); i++) {
            if (model_outputs[i]) {
              output_list.outputs.emplace_back(model_outputs[i]);
              output_list.expected_num_outputs += 1;
            } else {
              null_indices.insert(i);
            }
          }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/c/c_test_util.h

    TF_Tensor* BoolTensor(int32_t v);
    
    // Create a tensor with values of type TF_INT8 provided by `values`.
    TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values);
    
    // Create a tensor with values of type TF_INT32 provided by `values`.
    TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims,
                           const int32_t* values);
    
    // Create 1 dimensional tensor with values from `values`
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function_test.cc

      Define(-1, {}, {feed}, {neg}, {"negated_num"});
    
      // Use, run, and verify
      TF_Operation* func_feed = Placeholder(host_graph_, s_);
      TF_Operation* func_op = Use({func_feed});
      Run({{func_feed, Int32Tensor(3)}}, func_op, -3);
      VerifyFDef({"neg"}, {{"feed", DT_INT32}}, {{"negated_num", DT_INT32}},
                 {{"feed", "neg:0"}, {"neg:y:0", "negated_num"}}, {});
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  9. tensorflow/c/eager/c_api_unified_experimental_internal.h

    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    
    // Represents the results of the execution of an operation.
    struct OutputList {
      std::vector<AbstractTensorHandle*> outputs;
      int expected_num_outputs = -1;
    };
    
    namespace tracing {
    
    // =============================================================================
    // Implementation detail for the unified execution APIs for Eager and tracing
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Nov 13 22:20:40 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      if (TF_GetCode(status) != TF_OK) return -1;
    
      int num_entries = childrens.size();
      *entries = static_cast<char**>(
          plugin_memory_allocate(num_entries * sizeof((*entries)[0])));
      for (int i = 0; i < num_entries; i++)
        (*entries)[i] = strdup(childrens[i].c_str());
      TF_SetStatus(status, TF_OK, "");
      return num_entries;
    }
    
    void Stat(const TF_Filesystem* filesystem, const char* path,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top