Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Create (0.34 sec)

  1. tensorflow/c/eager/c_api_test_util.h

                       const char* device_type);
    
    // Create a ServerDef with the given `job_name` and add `num_tasks` tasks in it.
    tensorflow::ServerDef GetServerDef(const tensorflow::string& job_name,
                                       int num_tasks);
    
    // Create a ServerDef with job name "localhost" and add `num_tasks` tasks in it.
    tensorflow::ServerDef GetServerDef(int num_tasks);
    
    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)
  2. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      //
      // Note that creating this resource-dtype handle can fail, so `Create` is a
      // separate static method which returns a status.
      Variable(TFE_TensorHandle* handle, TF_DataType type)
          : handle_(handle), type_(type) {}
    
      // Helper for constructing a resource handle and wrapping it in a `Variable`
      // object.
      static Variable* Create(TFE_Context* context, TF_DataType type,
    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/c_test.c

    #endif
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/c_api_experimental.h"
    #include "tensorflow/c/env.h"
    #include "tensorflow/c/kernels.h"
    
    // A create function. This will never actually get called in this test, it's
    // just nice to know that it compiles.
    void* create(TF_OpKernelConstruction* ctx) {
      TF_DataType type;
      TF_Status* s = TF_NewStatus();
      TF_OpKernelConstruction_GetAttrType(ctx, "foobar", &type, s);
    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)
  4. tensorflow/c/eager/tfe_monitoring_internal.h

    struct TFE_MonitoringBuckets {
      explicit TFE_MonitoringBuckets(
          std::function<std::unique_ptr<tensorflow::monitoring::Buckets>(void)>
              fn) {
        create_buckets = fn;
      }
    
      std::function<std::unique_ptr<tensorflow::monitoring::Buckets>(void)>
          create_buckets;
    };
    
    struct TFE_MonitoringSamplerCell {
      tensorflow::monitoring::SamplerCell cell;
    };
    
    template <int NumLabels>
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.h

      const TF_Output* const body_inputs;
      TF_Output* const body_outputs;
    
      // Unique null-terminated name for this while loop. This is used as a prefix
      // for created operations.
      const char* name;
    } TF_WhileParams;
    
    // Creates a TF_WhileParams for creating a while loop in `g`. `inputs` are
    // outputs that already exist in `g` used as initial values for the loop
    // variables.
    //
    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)
  6. tensorflow/c/env.h

      size_t guard_size;
    
      // The NUMA node to use, -1 implies that there should be no NUMA affinity for
      // this thread.
      int numa_node;
    } TF_ThreadOptions;
    
    // 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
    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)
  7. tensorflow/c/eager/c_api_experimental_reader.h

    // counter can have been created with any number of labels.
    TF_CAPI_EXPORT extern TFE_MonitoringCounterReader*
    TFE_MonitoringNewCounterReader(const char* name);
    
    // Reads the value of a counter that was created with 0 labels.
    TF_CAPI_EXPORT extern int64_t TFE_MonitoringReadCounter0(
        TFE_MonitoringCounterReader*);
    
    // Reads the value of specific cell of a counter that was created with 1 label.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/abstract_context.h

      // lifetime through ref counting. Thus clients MUST call Release() in order to
      // destroy an instance of this class.
      virtual void Release() = 0;
    
      // Creates an operation builder and ties it to this context.
      // The returned object can be used for setting operation's attributes,
      // adding inputs and finally executing (immediately or lazily as in tracing)
      // it in this context.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:16:58 GMT 2021
    - 3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device.h

    // TPUReplicatedInput and TPUReplicatedOutput respectively. For example, with
    // two component devices, running `x = TPUReplicatedInput(inputs=[a, b])` on the
    // parallel device creates a parallel tensor `x` with `a` on the first of
    // `underlying_devices` and `b` on the second. Running `a_unpacked, b_unpacked =
    // TPUReplicatedOutput(input=x, num_replicas=2)` un-packs the parallel tensor
    // into its components.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api.h

                                                             TF_Status* status);
    
    // Create a new TFE_TensorHandle with the same contents as 'h' but placed
    // in the memory of the device name 'device_name'.
    // If source and destination are the same device, then this creates a new handle
    // that shares the underlying buffer. Otherwise, it currently requires at least
    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