Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for if (0.16 sec)

  1. src/cmd/cgo/internal/test/cthread_unix.c

    {
    	int i, max;
    
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		goDummy();
    	return NULL;
    }
    
    int
    callGoInCThread(int max)
    {
    	pthread_t thread;
    
    	if (pthread_create(&thread, NULL, goDummyCallbackThread, (void*)(&max)) != 0)
    		return -1;
    	if (pthread_join(thread, NULL) != 0)
    		return -1;
    
    	return max;
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_internal.h

    // c_api_experimental.h
    struct TFE_ContextOptions {
      TF_SessionOptions session_options;
      // true if async execution is enabled.
      bool async = false;
      TFE_ContextDevicePlacementPolicy device_placement_policy{
          TFE_DEVICE_PLACEMENT_SILENT};
      // If true, use TFRT backend
      bool use_tfrt = false;
      // Whether to run elementary eager ops wrapped in a call op.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 18 19:26:34 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/filesystem_interface.h

      /// Plugins:
      ///   * Must set `status` to `TF_OK` if `region` was updated.
      ///   * Must set `status` to `TF_NOT_FOUND` if `path` doesn't point to an
      ///     existing file or one of the parent entries in `path` doesn't exist.
      ///   * Must set `status` to `TF_FAILED_PRECONDITION` if `path` points to a
      ///     directory or if it is invalid.
      ///   * Must set `status` to `TF_INVALID_ARGUMENT` if `path` points to an
      ///     empty file.
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

      /// 1) The error from the remote filesystem, if the read from the remote
      ///    filesystem failed.
      /// 2) `TF_FAILED_PRECONDITION` if the read from the remote filesystem
      /// succeeded,
      ///    but the read returned a partial block, and the LRU cache contained a
      ///    block at a higher offset (indicating that the partial block should have
      ///    been a full block).
      /// 3) `TF_OUT_OF_RANGE` if the read from the remote filesystem succeeded, but
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/abstract_tensor_handle.h

      // Returns tensor dtype.
      virtual tensorflow::DataType DataType() const = 0;
    
      // Returns the status of the tensor handle. If it is a tfrt::TensorHandle,
      // the tensor handle can be an error and return non-OK status.
      virtual tensorflow::Status TensorHandleStatus() const;
    
      // Returns tensor shape. If tensor has unknown rank, shape remains untouched.
      virtual tensorflow::Status Shape(
          tensorflow::PartialTensorShape* shape) const = 0;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 03 00:30:36 GMT 2023
    - 3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.h

    // Copies up to `size` of `src` to `dst`, creating destination if needed.
    //
    // Callers should pass size of `src` in `size` and the permissions of `src` in
    // `mode`. The later is only used if `dst` needs to be created.
    int TransferFileContents(const char* src, const char* dst, mode_t mode,
                             off_t size);
    
    // Returns true only if `entry` points to an entry other than `.` or `..`.
    //
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/next_pluggable_device/c_api.h

        void (*delete_func)(void*), TF_Status* status);
    
    // If the ResourceMgr provided by the `ctx` has a resource
    // `plugin_resource_name`, returns it in `*result_plugin_resource`. Otherwise,
    // invokes create_func to create the resource. `delete_func` is needed for
    // ResourceMgr to clean up the resource. `status` will be set. If `status` is
    // not OK, `*result_plugin_resource` will be set as nullptr.
    //
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Dec 20 20:01:06 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients.h

    };
    
    // TODO(srbs): Figure out if we can avoid declaring this in the public header.
    // Wrapper for a tensor output of an operation executing under a tape.
    //
    // `GetID` returns a unique id for the wrapped tensor which is used to maintain
    // a map (`tensorflow::eager::TensorTape`) from the wrapped tensor to the id of
    // the op that produced it (or -1 if this tensor was watched using
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 10:27:05 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/immediate_execution_context.h

      // Block until all pending nodes are finished.
      virtual Status AsyncWait() = 0;
    
      // Add a function (serialized FunctionDef protocol buffer) so that it can
      // be executed as an op. Return error if the function with the same name
      // already exists.
      virtual Status AddFunctionDef(const FunctionDef& fdef) = 0;
    
      // Notifies about the function removal.
      virtual Status AddRemoveFunctionNotifier(const string& func,
    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)
  10. tensorflow/c/eager/c_api_unified_experimental_internal.h

        return ptr->getKind() == kGraph || ptr->getKind() == kMlir;
      }
    };
    
    namespace internal {
    struct TracingOperationDeleter {
      void operator()(TracingOperation* p) const {
        if (p != nullptr) {
          p->Release();
        }
      }
    };
    }  // namespace internal
    
    using TracingOperationPtr =
        std::unique_ptr<TracingOperation, internal::TracingOperationDeleter>;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Nov 13 22:20:40 GMT 2020
    - 5.2K bytes
    - Viewed (0)
Back to top