Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_SetAttrTensorShapeProtoList (0.2 sec)

  1. tensorflow/c/c_api.h

    // `protos` and `proto_lens` must point to arrays of length `num_shapes`.
    // `protos[i]` must point to an array of `proto_lens[i]` bytes
    // representing a binary-serialized TensorShapeProto.
    TF_CAPI_EXPORT extern void TF_SetAttrTensorShapeProtoList(
        TF_OperationDescription* desc, const char* attr_name,
        const void* const* protos, const size_t* proto_lens, int num_shapes,
        TF_Status* status);
    
    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)
  2. tensorflow/c/c_api_test.cc

      std::unique_ptr<size_t[]> list_lens;
      const std::vector<string> list = {bytes1, bytes2};
      StringVectorToArrays(list, &list_ptrs, &list_lens);
    
      auto desc = init("list(shape)");
      TF_SetAttrTensorShapeProtoList(desc, "v", list_ptrs.get(), list_lens.get(),
                                     list.size(), s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      auto oper = TF_FinishOperation(desc, s_);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. tensorflow/c/c_api.cc

        desc->node_builder.Attr(attr_name, shape);
        status->status = absl::OkStatus();
      } else {
        status->status = InvalidArgument("Unparseable TensorShapeProto");
      }
    }
    
    void TF_SetAttrTensorShapeProtoList(TF_OperationDescription* desc,
                                        const char* attr_name,
                                        const void* const* protos,
    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)
Back to top