- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestAxisTensorHandle (0.38 sec)
-
tensorflow/c/eager/c_api_test_util.h
const std::string& send_device, const std::string& recv_device, tensorflow::uint64 send_device_incarnation); // Return a 1-D INT32 tensor containing a single value 1. TFE_TensorHandle* TestAxisTensorHandle(TFE_Context* ctx); // Return an op taking minimum of `input` long `axis` dimension. TFE_Op* MinOp(TFE_Context* ctx, TFE_TensorHandle* input, TFE_TensorHandle* axis);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Jul 17 23:43:59 UTC 2023 - 7.7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TF_DeleteStatus(status); TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(a)); return op; } TFE_TensorHandle* TestAxisTensorHandle(TFE_Context* ctx) { int64_t dims[] = {1}; int data[] = {1}; TF_Status* status = TF_NewStatus(); TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_INT32, &dims[0],
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
CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteContextOptions(opts); TFE_TensorHandle* input = TestMatrixTensorHandle(ctx); TFE_TensorHandle* axis = TestAxisTensorHandle(ctx); TFE_Op* minOp = MinOp(ctx, input, axis); TFE_TensorHandle* retvals[1] = {nullptr}; int num_retvals = 1; TFE_Execute(minOp, &retvals[0], &num_retvals, 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)