Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for proto_len (0.27 sec)

  1. tensorflow/c/tf_buffer.cc

    TF_Buffer* TF_NewBuffer() { return new TF_Buffer{nullptr, 0, nullptr}; }
    
    TF_Buffer* TF_NewBufferFromString(const void* proto, size_t proto_len) {
      void* copy = tensorflow::port::Malloc(proto_len);
      std::memcpy(copy, proto, proto_len);
    
      TF_Buffer* buf = new TF_Buffer;
      buf->data = copy;
      buf->length = proto_len;
      buf->data_deallocator = [](void* data, size_t length) {
        tensorflow::port::Free(data);
      };
      return buf;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.cc

    TFE_ContextOptions* TFE_NewContextOptions() { return new TFE_ContextOptions; }
    
    void TFE_ContextOptionsSetConfig(TFE_ContextOptions* options, const void* proto,
                                     size_t proto_len, TF_Status* status) {
      TF_SetConfig(&options->session_options, proto, proto_len, status);
    }
    
    void TFE_ContextOptionsSetAsync(TFE_ContextOptions* options,
                                    unsigned char enable) {
      options->async = enable;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. tensorflow/c/python_api.cc

      handle_data.SerializeToString(&result);
      return result;
    }
    
    void SetHandleShapeAndType(TF_Graph* graph, TF_Output output, const void* proto,
                               size_t proto_len, TF_Status* status) {
      TF_SetHandleShapeAndType(graph, output, proto, proto_len, status);
    }
    
    void AddWhileInputHack(TF_Graph* graph, TF_Output new_src, TF_Operation* dst,
                           TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function.cc

      status->status = MessageToBuffer(func->record->fdef(), output_func_def);
    }
    
    TF_Function* TF_FunctionImportFunctionDef(const void* proto, size_t proto_len,
                                              TF_Status* status) {
      tensorflow::FunctionDef fdef;
      bool success = fdef.ParseFromArray(proto, proto_len);
      if (!success) {
        status->status = InvalidArgument(
            "Invalid FunctionDef given to TF_FunctionImportFunctionDef");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

                                    size_t proto_len, TF_Status* status) {
      // shape.ParseFromArray takes an int as length, this function takes size_t,
      // make sure there is no information loss.
      if (proto_len > std::numeric_limits<int>::max()) {
        status->status = InvalidArgument(
            "proto_len (", proto_len,
            " bytes) is too large to be parsed by the protocol buffer library");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental.h

                                                          size_t proto_len,
                                                          TF_Status* status);
    
    // This API is for experimental usage and may be subject to change.
    TF_CAPI_EXPORT extern void TFE_ContextUpdateServerDefWithTimeout(
        TFE_Context* ctx, int keep_alive_secs, const void* proto, size_t proto_len,
        int64_t init_timeout_in_ms, TF_Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  7. tensorflow/c/python_api.h

    // because I couldn't get SWIG to work otherwise.
    void SetHandleShapeAndType(TF_Graph* graph, TF_Output output, const void* proto,
                               size_t proto_len, TF_Status* status);
    
    // This method is used to add a new input edge to 'dst', which must be a While
    // op. The While op's "T" attribute must have already been updated to include
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.h

    // `proto` must point to an array of `proto_len` bytes representing a
    // binary-serialized TensorShapeProto.
    TF_CAPI_EXPORT extern void TF_SetAttrTensorShapeProto(
        TF_OperationDescription* desc, const char* attr_name, const void* proto,
        size_t proto_len, TF_Status* status);
    // `protos` and `proto_lens` must point to arrays of length `num_shapes`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental.cc

                                                       const void* proto,
                                                       size_t proto_len,
                                                       TF_Status* status) {
      tensorflow::ServerDef server_def;
      if (!server_def.ParseFromArray(proto, proto_len)) {
        status->status = tensorflow::errors::InvalidArgument(
            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_experimental.cc

    }
    
    void TFE_InitializeLocalOnlyContext(TFE_Context* ctx, int keep_alive_secs,
                                        const void* proto, size_t proto_len,
                                        TF_Status* status) {
      tensorflow::ServerDef server_def;
      if (!server_def.ParseFromArray(proto, proto_len)) {
        status->status = tensorflow::errors::InvalidArgument(
            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 23:52:39 UTC 2024
    - 35.9K bytes
    - Viewed (0)
Back to top