Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for tf_outputs (0.2 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        std::vector<TF_Output> tf_outputs(inputs.size());
        for (int i = 0; i < inputs.size(); i++) {
          GraphTensor* t = dyn_cast<GraphTensor>(inputs[i]);
          if (!t) {
            return tensorflow::errors::InvalidArgument(
                "Unable to cast input to GraphTensor");
          }
          tf_outputs[i] = t->output_;
        }
        TF_AddInputList(op_.get(), tf_outputs.data(), tf_outputs.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      cond_graph->parent_inputs = inputs;
      body_graph->parent = g;
      body_graph->parent_inputs = inputs;
    
      TF_Output* cond_inputs = new TF_Output[ninputs];
      TF_Output cond_output = {nullptr, -1};
      TF_Output* body_inputs = new TF_Output[ninputs];
      TF_Output* body_outputs = new TF_Output[ninputs];
      for (int i = 0; i < ninputs; ++i) body_outputs[i] = {nullptr, -1};
      const char* name = nullptr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.h

      TF_Graph* const cond_graph;
      const TF_Output* const cond_inputs;
      TF_Output cond_output;
    
      // The loop body graph. The inputs are the current values of the loop
      // variables. The outputs are the updated values of the loop variables.
      TF_Graph* const body_graph;
      const TF_Output* const body_inputs;
      TF_Output* const body_outputs;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradient_checker.cc

        TF_RETURN_IF_ERROR(
            RunAndMaybeSum(ctx, forward, theta_inputs, f_outputs, use_function));
        AbstractTensorHandlePtr fPlus(f_outputs[0]);
    
        // Get f(theta - eps):
        theta_inputs[input_index] = thetaMinus.get();
        TF_RETURN_IF_ERROR(
            RunAndMaybeSum(ctx, forward, theta_inputs, f_outputs, use_function));
        AbstractTensorHandlePtr fMinus(f_outputs[0]);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_test_util.h

                                        TF_Graph* graph, TF_Operation* ctrl_op,
                                        TF_Status* s, const char* name = "add");
    
    TF_Operation* Add(TF_Output l, TF_Output r, TF_Graph* graph, TF_Status* s,
                      const char* name = "add");
    
    TF_Operation* Min(TF_Operation* l, TF_Operation* r, TF_Graph* graph,
                      TF_Status* s, const char* name = "min");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 09 01:06:53 UTC 2018
    - 6K bytes
    - Viewed (0)
  6. tensorflow/c/python_api.cc

      TF_SetRequestedDevice(graph, op, device);
    }
    
    void UpdateEdge(TF_Graph* graph, TF_Output new_src, TF_Input dst,
                    TF_Status* status) {
      TF_UpdateEdge(graph, new_src, dst, status);
    }
    
    void ExtendSession(TF_Session* session, TF_Status* status) {
      TF_ExtendSession(session, status);
    }
    
    std::string GetHandleShapeAndType(TF_Graph* graph, TF_Output output) {
      Node* node = &output.oper->node;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      TF_SessionOptions* opts = TF_NewSessionOptions();
      TF_Session* sess = TF_NewSession(graph, opts, s);
      TF_DeleteSessionOptions(opts);
    
      TF_Output feeds[] = {TF_Output{a, 0}, TF_Output{b, 0}};
      TF_Output fetches[] = {TF_Output{plus2, 0}, TF_Output{plusB, 0}};
    
      const char* handle = nullptr;
      TF_SessionPRunSetup(sess, feeds, TF_ARRAYSIZE(feeds), fetches,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.cc

      TF_Operation* op;
      BinaryOpHelper("Mul", l, r, graph, s, name, &op, "", true);
      return op;
    }
    
    TF_Operation* Add(TF_Output l, TF_Output r, TF_Graph* graph, TF_Status* s,
                      const char* name) {
      TF_OperationDescription* desc = TF_NewOperation(graph, "AddN", name);
      TF_Output inputs[2] = {l, r};
      TF_AddInputList(desc, inputs, 2);
      return TF_FinishOperation(desc, s);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  9. tensorflow/c/python_api.h

    std::string GetHandleShapeAndType(TF_Graph* graph, TF_Output output);
    
    // Sets `output` based on `proto`, which should be a serialized
    // CppShapeInferenceResult::HandleData proto. `output` should be a resource
    // or variant tensor.
    // NOTE(skyewm): `proto` is passed a void*/size_t pair instead of a std::string
    // because I couldn't get SWIG to work otherwise.
    void SetHandleShapeAndType(TF_Graph* graph, TF_Output output, const void* proto,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/nn_grad.cc

    namespace tensorflow {
    namespace gradients {
    namespace {
    
    class ReluGradientFunction : public GradientFunction {
     public:
      explicit ReluGradientFunction(vector<AbstractTensorHandle*> f_outputs)
          : forward_outputs_(f_outputs) {
        for (auto output : forward_outputs_) {
          if (output) {
            output->Ref();
          }
        }
      }
    
      Status Compute(AbstractContext* ctx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 09 06:38:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top