Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Python (0.18 sec)

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

    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace parallel_device {
    
    // A helper for performing common operations on variables. A much more
    // restricted stand-in for tf.Variable in Python.
    class Variable {
     public:
      // Construct a Variable from a resource-dtype TFE_TensorHandle and an
      // indication of the dtype of the variable's value.
      //
    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)
  2. tensorflow/c/c_api.h

    // TF_FinishWhile() or TF_AbortWhile().
    //
    // Missing functionality (TODO):
    // - Gradients
    // - Reference-type inputs
    // - Directly referencing external tensors from the cond/body graphs (this is
    //   possible in the Python API)
    TF_CAPI_EXPORT extern TF_WhileParams TF_NewWhile(TF_Graph* g, TF_Output* inputs,
                                                     int ninputs,
                                                     TF_Status* status);
    
    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)
  3. tensorflow/c/eager/tape.h

    // "vspace" because a subset of these are related to a vector space, such as
    // adding gradients, getting zeroes, etc. Currently cannot be implemented
    // without using tensorflow python code, hence left unspecified here.
    //
    // Gradient is the type returned by gradient functions. In Python TF it's either
    // Tensor or IndexedSlices or None, which here we map to nullptr. Gradients need
    // to allow their size to be computed and they need to be passable to a backward
    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)
  4. tensorflow/c/eager/unified_api_testutil.h

                                       absl::Span<AbstractTensorHandle*>)>;
    
    // Runs `model` maybe wrapped in a function call op. This can be thought as
    // being equivalent to the following python code.
    //
    // if use_function:
    //   outputs = tf.function(model)(inputs)
    // else:
    //   outputs = model(inputs)
    Status RunModel(Model model, AbstractContext* ctx,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.h

                                                        TF_Status* status);
    // Get an attribute type given an op name; a fusion of TFE_NewOp and
    // TFE_OpGetAttrType for use from Python without the overhead of the individual
    // calls and memory management of TFE_Op.
    TF_CAPI_EXPORT extern TF_AttrType TFE_OpNameGetAttrType(
        TFE_Context* ctx, const char* op_or_function_name, const char* attr_name,
    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)
  6. tensorflow/c/eager/c_api_experimental.h

    } TFE_CustomDevice;
    
    // Registers a custom device for use with eager execution.
    //
    // Eager operations may be placed on this device, e.g.  `with
    // tf.device("CUSTOM"):` from Python if `device_name` for this call is
    // "/job:localhost/replica:0/task:0/device:CUSTOM:0".
    //
    // The custom device defines copy operations for moving TensorHandles on 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)
Back to top