Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for valueOf (0.17 sec)

  1. tensorflow/c/eager/abstract_operation.h

                                    int num_values) = 0;
      virtual Status SetAttrTypeList(const char* attr_name, const DataType* values,
                                     int num_values) = 0;
      virtual Status SetAttrBoolList(const char* attr_name,
                                     const unsigned char* values,
                                     int num_values) = 0;
      virtual Status SetAttrShapeList(const char* attr_name, const int64_t** dims,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

                        unsigned char value) {
      desc->node_builder.Attr(attr_name, static_cast<bool>(value));
    }
    
    void TF_SetAttrBoolList(TF_OperationDescription* desc, const char* attr_name,
                            const unsigned char* values, int num_values) {
      std::unique_ptr<bool[]> b(new bool[num_values]);
      for (int i = 0; i < num_values; ++i) {
        b[i] = values[i];
      }
      desc->node_builder.Attr(attr_name,
    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)
  3. tensorflow/c/eager/c_api.h

                                                     int num_values);
    TF_CAPI_EXPORT extern void TFE_OpSetAttrTypeList(TFE_Op* op,
                                                     const char* attr_name,
                                                     const TF_DataType* values,
                                                     int num_values);
    TF_CAPI_EXPORT extern void TFE_OpSetAttrShapeList(
    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)
  4. tensorflow/c/c_api.h

                                                         TF_Tensor** value,
                                                         TF_Status* status);
    
    // Fills in `values` with the TF_Tensor values of the attribute `attr_name` of
    // `oper`. `values` must point to an array of TF_Tensor* of length at least
    // `max_values` (ideally set to TF_AttrMetadata.list_size from
    // TF_OperationGetAttrMetadata(oper, attr_name)).
    //
    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)
  5. tensorflow/c/experimental/grappler/grappler_test.cc

      }
    
      size_t storage_size = 0;
      int num_values = 0;
      TF_Status* status = TF_NewStatus();
      TF_GetNodesToPreserveListSize(c_item, &num_values, &storage_size, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      EXPECT_EQ(nodes_preserved.size(), num_values);
      EXPECT_EQ(list_total_size, storage_size);
    
      std::unique_ptr<char*[]> values(new char*[nodes_preserved.size()]);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradients_test.cc

        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
                           /*executing_eagerly*/ ::testing::Values(true, false)));
    #else
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
                           /*tfrt*/ ::testing::Values(false),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.h

        auto device_value = absl::make_unique<DataType>();
        *device_value = values[device_index];
        std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> tensor(
            TF_NewTensor(
                datatype_enum, /*dims=*/nullptr, /*num_dims=*/0,
                device_value.release(), sizeof(DataType),
                [](void* data, size_t, void* arg) {
                  delete reinterpret_cast<DataType*>(data);
                },
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental_reader.h

    // read current values from streamz counters defined in other modules.
    //
    // The code under test will have created streamz counters like this:
    // auto* streamz = tensorflow::monitoring::Counter<1>::New("name",
    // "description", "label");
    // and then incremented that counter for various values of label:
    // streamz->GetCell("label-value")->IncrementBy(1);
    //
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      }
    
      // Add a parallel tensor with different values on each device to the variable.
      {
        TensorHandlePtr value_one(FloatTensorHandle(3., status.get()));
        TensorHandlePtr value_two(FloatTensorHandle(-2., status.get()));
        std::array<TFE_TensorHandle*, 2> components{value_one.get(),
                                                    value_two.get()};
        TensorHandlePtr combined_value =
    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/eager/c_api_test_util.h

      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    // Return a scalar tensor handle with given values.
    template <class T, TF_DataType datatype>
    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx, const T value) {
      T data[] = {value};
      return TestTensorHandleWithDims<T, datatype>(ctx, data, nullptr, 0);
    }
    
    // Return a tensor handle containing a 100x100 matrix of floats
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
Back to top