- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for example (0.14 sec)
-
tensorflow/c/c_api_test.cc
// Write {0, 1, 2, 3} as tensorflow::Example inputs. Tensor input(tensorflow::DT_STRING, TensorShape({4})); for (int64_t i = 0; i < input.NumElements(); ++i) { tensorflow::Example example; auto* feature_map = example.mutable_features()->mutable_feature(); (*feature_map)["x"].mutable_float_list()->add_value(i); input.flat<tstring>()(i) = example.SerializeAsString(); }
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/eager/c_api_test.cc
// 6. Create a context D using the full cluster server def E. // 7. Read the variable in D. TEST(CAPI, SingleHostServerDefV1Works) { // Create a server def that represents a 2-process cluster and a client. // Example: // // cluster { job { name: "worker" // tasks { key: 0 value: "localhost:14522" } // tasks { key: 1 value: "localhost:14523" } // }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1)