- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for constraint (0.2 sec)
-
tensorflow/c/c_api.cc
desc->node_builder.node_name(), "'"); } else { if (!desc->colocation_constraints.empty()) { desc->node_builder.Attr( tensorflow::kColocationAttrName, std::vector<string>(desc->colocation_constraints.begin(), desc->colocation_constraints.end())); } status->status = desc->node_builder.Finalize(&desc->graph->graph, &ret,
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/eager/parallel_device/parallel_device.cc
if (operation_name == std::string("_EagerConst")) { // Non-parallel tensors from _EagerConst/tf.constant are implicitly // broadcast, i.e. set as the input to each parallel operation. This // allows code like "tf.constant(1.)" or "tf.reduce_sum(..., axis=1)" // (where the value starts on the host), without allowing other implicit
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 29 22:05:31 GMT 2023 - 18.3K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
unsigned char TF_GetXlaConstantFoldingDisabled() { return static_cast<unsigned char>( tensorflow::GetBuildXlaOpsPassFlags()->tf_xla_disable_constant_folding); } void TF_SetXlaConstantFoldingDisabled(unsigned char should_enable) { tensorflow::GetBuildXlaOpsPassFlags()->tf_xla_disable_constant_folding = static_cast<bool>(should_enable); } void TF_SetXlaMinClusterSize(int size) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
feed2_ = Placeholder(graph_, s_, "feed2"); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); constant_ = ScalarConst(10, graph_, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); desc_ = TF_NewOperation(graph_, "AddN", "add"); TF_Output inputs[] = {{feed1_, 0}, {constant_, 0}}; TF_AddInputList(desc_, inputs, TF_ARRAYSIZE(inputs)); } ~CApiColocationTest() override {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/experimental/grappler/grappler.cc
CONFIG_TOGGLE(implementation_selector); CONFIG_TOGGLE(function_optimization); CONFIG_TOGGLE(common_subgraph_elimination); CONFIG_TOGGLE(arithmetic_optimization); CONFIG_TOGGLE(debug_stripper); CONFIG_TOGGLE(constant_folding); CONFIG_TOGGLE(shape_optimization); CONFIG_TOGGLE(auto_mixed_precision); CONFIG_TOGGLE(auto_mixed_precision_onednn_bfloat16); CONFIG_TOGGLE(auto_mixed_precision_mkl);
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 15K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
const size_t* lengths, int num_values) override { if (strcmp(attr_name, tensorflow::kColocationAttrName) == 0) { op_->colocation_constraints.clear(); for (int i = 0; i < num_values; ++i) { op_->colocation_constraints.emplace(static_cast<const char*>(values[i]), lengths[i]); } } else { std::vector<tensorflow::StringPiece> v;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 15.4K bytes - Viewed (1) -
tensorflow/c/c_api_function_test.cc
// Workaround for not being able to initialize empty map using {} std::unordered_set<string> empty_; }; TEST_F(CApiFunctionTest, OneOp_ZeroInputs_OneOutput) { /* * constant * | * v */ // Define TF_Operation* c = ScalarConst(10, func_graph_, s_, "scalar10"); Define(-1, {}, {}, {c}, {}); // Use, run, and verify
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)