Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for CTX (0.16 sec)

  1. tensorflow/c/eager/c_api_test_util.h

    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx, const T value) {
      T data[] = {value};
      return TestTensorHandleWithDims<T, datatype>(ctx, data, nullptr, 0);
    }
    
    // Return a tensor handle containing a 100x100 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle100x100(TFE_Context* ctx);
    
    // Return a tensor handle containing a 3x2 matrix of doubles
    TFE_TensorHandle* DoubleTestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    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/experimental/gradients/not_differentiable.h

    namespace tensorflow {
    namespace gradients {
    // Ignores `grad_outputs` and sets all entries in grad_inputs to nullptr.
    class NotDifferentiableGradientFunction : public GradientFunction {
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override;
    };
    // Shorthand for registry->Register(op, new NotDifferentiableGradientFunction)
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Dec 03 22:28:48 GMT 2020
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api.h

    TF_CAPI_EXPORT extern void TFE_DeleteContext(TFE_Context* ctx);
    TF_CAPI_EXPORT extern TF_DeviceList* TFE_ContextListDevices(TFE_Context* ctx,
                                                                TF_Status* status);
    
    // Clears the internal caches in the TFE context. Useful when reseeding random
    // ops.
    TF_CAPI_EXPORT extern void TFE_ContextClearCaches(TFE_Context* ctx);
    
    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)
  4. tensorflow/c/c_test.c

    void* create(TF_OpKernelConstruction* ctx) {
      TF_DataType type;
      TF_Status* s = TF_NewStatus();
      TF_OpKernelConstruction_GetAttrType(ctx, "foobar", &type, s);
      TF_DeleteStatus(s);
      return NULL;
    }
    
    // A compute function. This will never actually get called in this test, it's
    // just nice to know that it compiles.
    void compute(void* kernel, TF_OpKernelContext* ctx) {
      TF_Tensor* input;
      TF_Status* s = TF_NewStatus();
    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)
  5. tensorflow/c/experimental/gradients/grad_test_helper.h

    #include "tensorflow/c/eager/unified_api_testutil.h"
    
    namespace tensorflow {
    namespace gradients {
    namespace internal {
    
    void CompareNumericalAndAutodiffGradients(
        Model model, Model grad_model, AbstractContext* ctx,
        absl::Span<AbstractTensorHandle* const> inputs, bool use_function,
        double abs_error = 1e-2);
    
    void CheckTensorValue(AbstractTensorHandle* t, absl::Span<const float> manuals,
    C
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Jan 14 20:36:51 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tfe_op_attrs_internal.h

    typedef struct TFE_Op TFE_Op;
    
    namespace tensorflow {
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::AbstractOpAttrs, TFE_OpAttrs);
    
    // Set an AttrValue on the op. Doesn't handle the list types.
    void SetOpAttrValueScalar(TFE_Context* ctx, TFE_Op* op,
                              const tensorflow::AttrValue& default_value,
                              const char* attr_name, TF_Status* status);
    }  // namespace tensorflow
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 10 05:41:19 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental.h

    // this context.
    TF_CAPI_EXPORT extern void TFE_ContextEnableGraphCollection(TFE_Context* ctx);
    
    // Disables only graph collection in RunMetadata on the functions executed from
    // this context.
    TF_CAPI_EXPORT extern void TFE_ContextDisableGraphCollection(TFE_Context* ctx);
    
    // TODO(fishx): Move these monitoring APIs into a separate file.
    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)
  8. tensorflow/c/eager/unified_api_testutil.h

    Status TestTensorHandleWithDims(AbstractContext* ctx, const T* data,
                                    const int64_t* dims, int num_dims,
                                    AbstractTensorHandle** tensor) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_Context* eager_ctx =
          TF_ExecutionContextGetTFEContext(wrap(ctx), status.get());
      TF_RETURN_IF_ERROR(StatusFromTF_Status(status.get()));
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_unified_experimental.h

    // Creates a new TF_AbstractFunction from the current tracing states in the
    // context. The provided `ctx` is consumed by this API call and deleted.
    // The returned TF_AbstractFunction must be deleted by the client,
    // TODO(aminim): clarify the contract on the state of the context after this
    // call.
    TF_AbstractFunction* TF_FinalizeFunction(TF_ExecutionContext* ctx,
                                             TF_OutputList*, TF_Status*);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/tape/tape_context.h

      // For LLVM style RTTI.
      static bool classof(const AbstractContext* ptr) {
        return ptr->getKind() == kTape;
      }
      ~TapeContext() override;
    
     private:
      AbstractContext* parent_ctx_;  // Not owned.
      Tape* tape_;
      const GradientRegistry& registry_;
    };
    }  // namespace gradients
    }  // namespace tensorflow
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 23 23:12:39 GMT 2020
    - 1.6K bytes
    - Viewed (0)
Back to top