Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Enum (0.13 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      if (values.size() != num_underlying_devices()) {
        TF_SetStatus(
            status, TF_INVALID_ARGUMENT,
            "Number of values did not match number of underlying devices.");
        return nullptr;
      }
      TF_DataType datatype_enum(
          static_cast<TF_DataType>(DataTypeToEnum<DataType>().value));
      for (int device_index = 0; device_index < num_underlying_devices();
           ++device_index) {
    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/abstract_context.h

    // (for now at least).
    // Implementations of the context may contain some state e.g. an execution
    // environment, a traced representation etc.
    class AbstractContext {
     protected:
      enum AbstractContextKind { kGraph, kMlir, kEager, kTfrt, kTape, kOpHandler };
      explicit AbstractContext(AbstractContextKind kind) : kind_(kind) {}
      virtual ~AbstractContext() {}
    
     public:
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler.h

    // or removed during the graph transformation. This includes feed and fetch
    // nodes, keep_ops, init_ops. Fills in `num_values` and `storage_size`, they
    // will be used in `TF_GetNodesToPreserveList`.
    TF_CAPI_EXPORT extern void TF_GetNodesToPreserveListSize(
        const TF_GrapplerItem* item, int* num_values, size_t* storage_size,
        TF_Status* status);
    
    // Get a set of node names that must be preserved. They can not be transformed
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cthread_unix.c

    #include "_cgo_export.h"
    
    static void*
    addThread(void *p)
    {
    	int i, max;
    	
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		Add(i);
    	return 0;
    }
    
    void
    doAdd(int max, int nthread)
    {
    	enum { MaxThread = 20 };
    	int i;
    	pthread_t thread_id[MaxThread];
    	
    	if(nthread > MaxThread)
    		nthread = MaxThread;
    	for(i=0; i<nthread; i++)
    		pthread_create(&thread_id[i], 0, addThread, &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)
  5. tensorflow/c/eager/abstract_function.h

    // representation between various supported formats e.g. FunctionDef and Mlir
    // function.
    class AbstractFunction : public core::RefCounted {
     protected:
      enum AbstractFunctionKind { kGraph, kMlir };
      explicit AbstractFunction(AbstractFunctionKind kind) : kind_(kind) {}
    
     public:
      // Returns which subclass is this instance of.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/abstract_operation.h

      virtual Status SetAttrTypeList(const char* attr_name, const DataType* values,
                                     int num_values) = 0;
      virtual Status SetAttrBoolList(const char* attr_name,
                                     const unsigned char* values,
                                     int num_values) = 0;
      virtual Status SetAttrShapeList(const char* attr_name, const int64_t** dims,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental.h

                                                     TF_Status* s);
    void TF_DeleteExecutionContext(TF_ExecutionContext*);
    
    // Represents a (partially-defined) shape.
    typedef struct TF_Shape {
      int num_dims;  // Must be >= -1; -1 represents unknown rank.
      int64_t* dim_sizes;
    } TF_Shape;
    
    // Add a new parameter to a TensorFlow Function.
    TF_AbstractTensor* TF_AddFunctionParameter(TF_ExecutionContext* func,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.h

    // Custom devices must use TFE_NewCustomDeviceTensorHandle instead.
    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_NewTensorHandleFromDeviceMemory(
        TFE_Context* ctx, const char* device_name, TF_DataType, const int64_t* dims,
        int num_dims, void* data, size_t len,
        void (*deallocator)(void* data, size_t len, void* arg),
        void* deallocator_arg, TF_Status* status);
    
    // Retrieves the address space (i.e. job, replia, task) of the local host and
    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)
  9. tensorflow/c/eager/abstract_tensor_handle.h

    namespace tensorflow {
    
    // Abstract interface to a Tensor handle in either tracing or immediate
    // execution mode.
    class AbstractTensorHandle : public core::RefCounted {
     protected:
      enum AbstractTensorHandleKind { kGraph, kMlir, kEager, kTfrt, kCustomDevice };
      explicit AbstractTensorHandle(AbstractTensorHandleKind kind) : kind_(kind) {}
      ~AbstractTensorHandle() override {}
    
     public:
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 03 00:30:36 GMT 2023
    - 3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api.h

                                                     const TF_DataType* values,
                                                     int num_values);
    TF_CAPI_EXPORT extern void TFE_OpSetAttrShapeList(
        TFE_Op* op, const char* attr_name, const int64_t** dims,
        const int* num_dims, int num_values, TF_Status* out_status);
    TF_CAPI_EXPORT extern void TFE_OpSetAttrFunctionList(TFE_Op* op,
    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)
Back to top