- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for conds (0.14 sec)
-
tensorflow/c/eager/tape.h
} else { // TODO(allenl): Figure out why using zeros_like everywhere causes issues // for some gradient functions and if there's another way to work around // it (e.g. conds instead of ifs). The value shouldn't really matter. TF_RETURN_IF_ERROR(vspace_.BuildOnesLike(output_tensor, &aid)); } if (TF_PREDICT_FALSE(aid == nullptr)) { return tensorflow::errors::Internal(
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) -
tensorflow/c/c_api.cc
if (!CreateInput(inputs[i], cond_graph, StrCat("cond_input", i).c_str(), &cond_inputs[i], status)) { break; } if (!CreateInput(inputs[i], body_graph, StrCat("body_input", i).c_str(), &body_inputs[i], status)) { break; } } TF_WhileParams params = {ninputs, cond_graph, cond_inputs, cond_output,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
// Create loop: while (input1 < input2) input1 += input2 + 1 TF_Operation* less_than = LessThan( params->cond_inputs[0], params->cond_inputs[1], params->cond_graph, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); params->cond_output = {less_than, 0}; TF_Operation* add1 = Add(params->body_inputs[0], params->body_inputs[1],
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
RELEASE.md
* `tf.cond` emits a StatelessIf op if the branch functions are stateless and do not touch any resources. * `tf.cond`, `tf.while` and `if` and `while` in AutoGraph now accept a nonscalar predicate if has a single element. This does not affect non-V2 control flow. * `tf.while_loop` emits a StatelessWhile op if the cond and body functions are
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Mon Apr 29 19:17:57 GMT 2024 - 727.7K bytes - Viewed (8) -
tensorflow/c/c_api.h
// This is the size of cond_inputs, body_inputs, and body_outputs. const int ninputs; // The while condition graph. The inputs are the current values of the loop // variables. The output should be a scalar boolean. TF_Graph* const cond_graph; const TF_Output* const cond_inputs; TF_Output cond_output;
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)