- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TFE_OpSetAttrBool (0.13 sec)
-
tensorflow/c/eager/c_api.h
TF_CAPI_EXPORT extern void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name, float value); TF_CAPI_EXPORT extern void TFE_OpSetAttrBool(TFE_Op* op, const char* attr_name, unsigned char value); TF_CAPI_EXPORT extern void TFE_OpSetAttrType(TFE_Op* op, const char* attr_name,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 22.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
auto s = tensorflow::unwrap(op)->SetAttrFloat(attr_name, value); if (!s.ok()) { LOG(WARNING) << "Unable to set attribute: " << attr_name; } } void TFE_OpSetAttrBool(TFE_Op* op, const char* attr_name, unsigned char value) { auto s = tensorflow::unwrap(op)->SetAttrBool(attr_name, (value == 0) ? false : true); if (!s.ok()) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 43.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
TFE_OpAddInput(op, input, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_OpAddInput(op, axis, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_OpSetAttrBool(op, "keep_dims", 1); TFE_OpSetAttrType(op, "Tidx", TF_INT32); TF_DeleteStatus(status); TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(input)); return op; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
serialized_config.length()); } if (use_tfrt) { // Set some test-only graph compiler options. TFE_OpSetAttrBool(op, "TFRT_TEST_enable_native_ops", false); TFE_OpSetAttrBool(op, "TFRT_TEST_enable_grappler", enable_grappler); } ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_OpAddInput(op, m, status);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0)