Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for init (0.15 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
      Status SetAttrShapeList(const char* attr_name, const int64_t** dims,
                              const int* num_dims, int num_values) override {
        std::vector<PartialTensorShape> shapes;
        shapes.reserve(num_values);
        for (int i = 0; i < num_values; ++i) {
          if (num_dims[i] < 0) {
            shapes.emplace_back();
          } else {
            shapes.emplace_back(ArraySlice<int64_t>(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  2. 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)
  3. tensorflow/c/c_api_experimental_test.cc

    TEST(CAPI_EXPERIMENTAL, IsStateful) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      int assign = TF_OpIsStateful("AssignAddVariableOp", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(assign, 1);
      int id = TF_OpIsStateful("Identity", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(id, 0);
    }
    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)
  4. tensorflow/c/eager/immediate_execution_context.h

      // `memory_releaser` will be called on destruction, and it's responsible for
      // cleaning up the underlying buffer.
      virtual AbstractTensorInterface* CreateTensor(
          DataType dtype, const int64_t* dims, int num_dims, void* data, size_t len,
          MemoryReleaser memory_releaser, void* memory_releaser_arg) = 0;
    
      // Create a handle to wrap and manage a Tensor
      virtual ImmediateExecutionTensorHandle* CreateLocalHandle(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.h

    //
    TF_CAPI_EXPORT extern TF_ShapeAndTypeList* TF_NewShapeAndTypeList(
        int num_shapes);
    TF_CAPI_EXPORT extern void TF_ShapeAndTypeListSetShape(
        TF_ShapeAndTypeList* shape_list, int index, const int64_t* dims,
        int num_dims);
    TF_CAPI_EXPORT extern void TF_ShapeAndTypeListSetUnknownShape(
        TF_ShapeAndTypeList* shape_list, int index);
    TF_CAPI_EXPORT extern void TF_ShapeAndTypeListSetDtype(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    -{
    -  size_t __result = 0;
    -  while (__s[__result] != '\0' && __s[__result] != __reject1
    -	 && __s[__result] != __reject2)
    -    ++__result;
    -  return __result;
    -}
    -
    -__STRING_INLINE size_t __strcspn_c3 (const char *__s, int __reject1,
    -				     int __reject2, int __reject3);
    -__STRING_INLINE size_t
    -__strcspn_c3 (const char *__s, int __reject1, int __reject2,
    -	      int __reject3)
    -{
    Others
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      }
    
      {
        std::unique_ptr<ParallelTensor> int_tensors =
            parallel_device.ScalarsFromSequence<int>({5, 6}, context.get(),
                                                     status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        ExpectScalarEq<int>(int_tensors->tensor(0), 5);
        ExpectScalarEq<int>(int_tensors->tensor(1), 6);
      }
    }
    
    }  // namespace parallel_device
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/tape.h

    // this by not constructing zeros to pass for those indices.
    std::unordered_map<string, std::unordered_set<int>>*
    FunctionsAcceptingNoneForIndicesMap() {
      static auto* const m =
          new std::unordered_map<string, std::unordered_set<int>>({
              {"SoftmaxCrossEntropyWithLogits", {1}},
              {"SparseSoftmaxCrossEntropyWithLogits", {1}},
              {"FusedBatchNorm", {1, 2, 3, 4}},
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_cluster_test.cc

    #include "tensorflow/core/protobuf/tensorflow_server.pb.h"
    
    namespace {
    
    using ::tensorflow::string;
    
    void ReplaceTaskInServerDef(tensorflow::ServerDef* server_def, int task_index) {
      tensorflow::JobDef* job_def = server_def->mutable_cluster()->mutable_job(0);
      int port = tensorflow::testing::PickUnusedPortOrDie();
      job_def->mutable_tasks()->at(task_index) =
          tensorflow::strings::StrCat("localhost:", port);
    }
    
    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)
  10. tensorflow/c/experimental/gradients/math_grad_test.cc

                             {12, 15, 18, 12, 15, 18, 12, 15, 18},
                             {6, 6, 6, 15, 15, 15, 24, 24, 24},
                             {6, 15, 24, 6, 15, 24, 6, 15, 24}};
    
      for (int i{}; i < 4; ++i) {
        bool transpose_a = transpose_a_vals[i];
        bool transpose_b = transpose_b_vals[i];
        Model MatMulModel =
            [transpose_a, transpose_b](
                AbstractContext* ctx,
    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)
Back to top