Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for OK (0.12 sec)

  1. 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)
  2. tensorflow/c/eager/c_api_experimental.h

    // follow the format:
    //
    //    /job:<name>/replica:<replica>/task:<task>/device:<type>:<device_num>
    //
    // If the device is successfully registered, `status` is set to TF_OK. Otherwise
    // the device is not usable. In case of a bad status, `device.delete_device` is
    // still called on `device_info` (i.e. the caller does not retain ownership).
    //
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/c/experimental/filesystem/filesystem_interface.h

                          int num_files, TF_Status** statuses);
    
      /// Obtains statistics for the given `path`.
      ///
      /// Updates `stats` only if `status` is set to `TF_OK`.
      ///
      /// Plugins:
      ///   * Must set `status` to `TF_OK` if `path` exists.
      ///   * Must set `status` to `TF_NOT_FOUND` if `path` doesn't point to a
      ///     filesystem entry.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  8. tensorflow/c/eager/tape.h

          // Release all backprop functions
          for (const auto& pair : state.op_tape) {
            pair.second.backward_function_deleter(pair.second.backward_function);
          }
        }
      });
      if (!s.ok()) {
        return s;
      }
    
      std::unordered_map<int64_t, int64_t> gradients_size;
      // TODO(apassos) multiple threads could be dequeuing from op_stack at the same
      // time, for better CPU backprop performance.
    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.h

    TF_CAPI_EXPORT extern const char* TFE_TensorHandleBackingDeviceName(
        TFE_TensorHandle* h, TF_Status* status);
    
    // Return a pointer to a new TFE_TensorHandle that shares the underlying tensor
    // with `h`. On success, `status` is set to OK. On failure, `status` reflects
    // the error and a nullptr is returned.
    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_TensorHandleCopySharingTensor(
        TFE_TensorHandle* h, TF_Status* status);
    
    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)
  10. 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)
Back to top