Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_WhileParams (0.18 sec)

  1. tensorflow/c/c_api.h

      // 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.
    //
    // The returned TF_WhileParams will have all fields initialized except
    // `cond_output`, `body_outputs`, and `name`. The `body_outputs` buffer will be
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

        s->status = InvalidArgument(
            "TF_WhileParams must be created by successful TF_NewWhile() call");
        return false;
      }
      return true;
    }
    
    bool ValidateInputWhileParams(const TF_WhileParams& params, TF_Status* s) {
      if (params.cond_output.oper == nullptr) {
        s->status = InvalidArgument("TF_WhileParams `cond_output` field isn't set");
        return false;
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_internal.h

      tensorflow::gtl::FlatMap<TF_Session*, tensorflow::string> sessions
          TF_GUARDED_BY(mu);
      bool delete_requested TF_GUARDED_BY(mu);  // set true by TF_DeleteGraph
    
      // Used to link graphs contained in TF_WhileParams to the parent graph that
      // will eventually contain the full while loop.
      TF_Graph* parent;
      TF_Output* parent_inputs;
    };
    
    struct TF_OperationDescription {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat May 13 00:49:12 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function_test.cc

      std::vector<TF_Output> outputs;
    
      // Add while loop to func_graph_
      {
        // The inputs to the while loop
        std::vector<TF_Output> inputs = {{feed1, 0}, {feed2, 0}};
        std::unique_ptr<TF_WhileParams> params(new TF_WhileParams(
            TF_NewWhile(func_graph_, &inputs[0], inputs.size(), s_)));
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        params->name = "test_loop";
    
    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