Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 598 for outputs_ (0.13 sec)

  1. tensorflow/c/c_test_util.cc

      ResetOutputValues();
      outputs_.clear();
      for (TF_Operation* o : outputs) {
        outputs_.emplace_back(TF_Output{o, 0});
      }
      output_values_.resize(outputs_.size());
    }
    
    void CSession::SetOutputs(const std::vector<TF_Output>& outputs) {
      ResetOutputValues();
      outputs_ = outputs;
      output_values_.resize(outputs_.size());
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  2. tensorflow/c/c_test_util.h

      explicit CSession(TF_Session* session);
    
      ~CSession();
    
      void SetInputs(std::vector<std::pair<TF_Operation*, TF_Tensor*>> inputs);
      void SetOutputs(std::initializer_list<TF_Operation*> outputs);
      void SetOutputs(const std::vector<TF_Output>& outputs);
      void SetTargets(std::initializer_list<TF_Operation*> targets);
    
      void Run(TF_Status* s);
    
      void CloseAndDelete(TF_Status* s);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 09 01:06:53 UTC 2018
    - 6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_test.cc

       *
       *   A =[[0, 1],[1, 0]]
       *   B =[[1, 0],[0, 1]]
       *
       *   output1, output2, output3 = two_adds_and_mm(A, B)
       *
       * We expect outputs:
       *
       *   output1 = [[1, 1],[1, 1]]
       *   output2 = [[2, 0],[0, 2]]
       *   output3 = [[2, 2],[2, 2]]
       *
       */
    
      // Build eager context.
      TFE_ContextOptions* opts = TFE_NewContextOptions();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        }
        inputs_.push_back(t->output_);
        *output = tensorflow::down_cast<TracingTensorHandle*>(outputs[0]);
        return absl::OkStatus();
      }
    
      absl::Status Finalize(OutputList* outputs, AbstractFunction** f) override {
        std::vector<TF_Output> graph_outputs;
        graph_outputs.reserve(outputs->outputs.size());
        for (auto* abstract_output : outputs->outputs) {
          GraphTensor* output = dyn_cast<GraphTensor>(abstract_output);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function.cc

      output_tensors->reserve(noutputs);
      for (int i = 0; i < noutputs; ++i) {
        Node* node = outputs[i].oper ? &outputs[i].oper->node : nullptr;
        int idx = outputs[i].index;
        TF_RETURN_WITH_CONTEXT_IF_ERROR(
            fn_body->graph.IsValidOutputTensor(node, idx),
            "Encountered while processing output ", i, " from function '", fn_name,
            "'");
        TF_RETURN_WITH_CONTEXT_IF_ERROR(ValidateNonRefOutput(node, idx),
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.h

    //  noutputs - number of elements in `outputs` array
    //  outputs - array of TF_Outputs that specify the outputs of the function.
    //            If `noutputs` is zero (the function returns no outputs), `outputs`
    //            can be null. `outputs` can contain the same tensor more than once.
    //  output_names - The names of the function's outputs. `output_names` array
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  7. tensorflow/c/c_api.cc

      }
      return outputs;
    }
    
    void TFOutputsFromOutputs(const std::vector<tensorflow::Output>& outputs,
                              TF_Output* tf_outputs) {
      for (int i = 0; i < outputs.size(); i++) {
        tf_outputs[i].oper = ToOperation(outputs[i].node());
        tf_outputs[i].index = outputs[i].index();
      }
    }
    #endif  // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_experimental.cc

      VLOG(1) << "Running the dequeue op";
      TF_Output output{dequeue_op, 0};
      TF_Tensor* ret;
      TF_SessionRun(session, /*run_options*/ nullptr,
                    // input related parameters
                    /*inputs*/ nullptr, /*input_values*/ nullptr, /*ninputs*/ 0,
                    // output related parameters
                    /*outputs*/ &output, /*output_values*/ &ret,
                    /*noutputs*/ 1,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradient_checker.cc

      int num_dims_out = TF_NumDims(model_out_tensor);
      TF_DeleteTensor(model_out_tensor);
    
      // If the output is a scalar, then return the scalar output
      if (num_dims_out == 0) {
        outputs[0] = model_out.release();
        return absl::OkStatus();
      }
    
      // Else, reduce sum the output to get a scalar
    
      // Will sum all dimensions, so get a Tensor containing [0,...,num_dims_out-1].
      AbstractTensorHandlePtr sum_dims;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function_test.cc

                             const std::vector<IOSpec>& outputs) {
        const OpDef& signature = fdef.signature();
        ASSERT_EQ(outputs.size(), signature.output_arg_size());
        for (int i = 0; i < outputs.size(); ++i) {
          const OpDef::ArgDef& arg = signature.output_arg(i);
          const IOSpec& out = outputs[i];
          if (out.second != DT_INVALID) {
            ASSERT_EQ(arg.type(), out.second)
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
Back to top