Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ok (0.16 sec)

  1. tensorflow/c/env.h

    // Creates the specified directory. Typical status code are:
    //  * TF_OK - successfully created the directory
    //  * TF_ALREADY_EXISTS - directory already exists
    //  * TF_PERMISSION_DENIED - dirname is not writable
    TF_CAPI_EXPORT extern void TF_CreateDir(const char* dirname, TF_Status* status);
    
    // Deletes the specified directory. Typical status codes are:
    //  * TF_OK - successfully deleted the directory
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrInt(op.get(), "N", num_replicas);
      for (int i = 0; i < num_replicas; ++i) {
        TFE_OpAddInput(op.get(), components[i], status);
        if (TF_GetCode(status) != TF_OK) return nullptr;
      }
      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    
      TFE_TensorHandle* result_handle;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.h

        if (TF_GetCode(status) != TF_OK) return nullptr;
        TFE_OpSetDevice(const_op.get(), underlying_devices_[device_index].c_str(),
                        status);
        if (TF_GetCode(status) != TF_OK) return nullptr;
        TFE_OpSetAttrTensor(const_op.get(), "value", tensor.get(), status);
        if (TF_GetCode(status) != TF_OK) return nullptr;
        TFE_OpSetAttrType(const_op.get(), "dtype", datatype_enum);
    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)
  4. tensorflow/c/c_api.h

    // If this function succeeds:
    //   * *status is set to an OK value,
    //   * a TF_Operation is added to the graph,
    //   * a non-null value pointing to the added operation is returned --
    //     this value is valid until the underlying graph is deleted.
    // Otherwise:
    //   * *status is set to a non-OK value,
    //   * the graph is not modified,
    //   * a null value is returned.
    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/filesystem/plugins/gcs/gcs_filesystem.h

    #include "tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h"
    #include "tensorflow/c/tf_status.h"
    
    void ParseGCSPath(const std::string& fname, bool object_empty_ok,
                      std::string* bucket, std::string* object, TF_Status* status);
    
    namespace tf_random_access_file {
    void Cleanup(TF_RandomAccessFile* file);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test_util.h

      TF_Tensor* t = TFE_AllocateHostTensor(ctx, datatype, dims, num_dims, status);
      memcpy(TF_TensorData(t), data, TF_TensorByteSize(t));
      TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    // Return a scalar tensor handle with given values.
    template <class T, TF_DataType datatype>
    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)
  7. tensorflow/c/c_test.c

      TF_NewWritableFile(full_path, &h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status));
        return 1;
      }
      fprintf(stderr, "wrote %s\n", full_path);
      free(full_path);
      TF_CloseWritableFile(h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_CloseWritableFile failed: %s\n", TF_Message(status));
      }
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. tensorflow/c/c_op_requires.h

    // for plugin OpKernel developer's convenience.
    
    #define C_OPKERNELCONTEXT_REQUIRES_OK(CTX, C_STATUS, __VA_ARGS__) \
      do {                                                            \
        ::tensorflow::Status _s(__VA_ARGS__);                         \
        if (!TF_PREDICT_TRUE(_s.ok())) {                              \
          ::tensorflow::Set_TF_Status_from_Status(C_STATUS, _s);      \
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Aug 02 21:35:06 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

        // key if this proves to be a significant performance bottleneck.
        absl::MutexLock lock(&mu_);
        if (LookupLocked(key, value)) {
          return TF_SetStatus(status, TF_OK, "");
        }
        compute_func(key, value, status);
        if (TF_GetCode(status) == TF_OK) {
          InsertLocked(key, *value);
        }
      }
    
      /// Clear the cache.
      void Clear() {
        absl::MutexLock lock(&mu_);
        cache_.clear();
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_experimental.h

    TF_CAPI_EXPORT extern const char* TF_GetNumberAttrForOpListInput(
        const char* op_name, int input_index, TF_Status* status);
    
    // Returns 1 if the op is stateful, 0 otherwise. The return value is undefined
    // if the status is not ok.
    TF_CAPI_EXPORT extern int TF_OpIsStateful(const char* op_type,
                                              TF_Status* status);
    
    // Platform specific initialization routine. Very few platforms actually require
    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)
Back to top