- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for Int32 (0.16 sec)
-
tensorflow/c/eager/c_api_experimental_test.cc
TFE_ContextSetExecutorForThread(ctx, executor); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TF_Tensor* t = TF_AllocateTensor(TF_INT32, nullptr, 0, 1 * sizeof(tensorflow::int32)); *reinterpret_cast<tensorflow::int32*>(TF_TensorData(t)) = 42; TFE_TensorHandle* h = TFE_NewTensorHandle(t, status); ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status); TF_DeleteTensor(t);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/c_api_test.cc
TF_Tensor* out = csession.output_tensor(0); ASSERT_TRUE(out != nullptr); EXPECT_EQ(TF_INT32, TF_TensorType(out)); EXPECT_EQ(0, TF_NumDims(out)); // scalar ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out)); int32* output_contents = static_cast<int32*>(TF_TensorData(out)); EXPECT_EQ(3 + 2, *output_contents); // Add another operation to the graph.
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/c_api_experimental_test.cc
TFE_Op* reshape_op = TFE_NewOp(tfe_context_, "Reshape", status_); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_); TFE_OpSetAttrType(reshape_op, "T", TF_FLOAT); TFE_OpSetAttrType(reshape_op, "Tshape", TF_INT32); CheckOutputShapes(reshape_op, /* input_shapes*/ {unknown_shape(), unknown_shape()}, /* input_tensors*/ {nullptr, tensor_1X6},
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1) -
tensorflow/c/eager/c_api_test.cc
EXPECT_EQ(attr_found->second.type(), tensorflow::DataType::DT_FLOAT); attr_found = attr_values.find("Tidx"); EXPECT_NE(attr_found, attr_values.cend()); EXPECT_EQ(attr_found->second.type(), tensorflow::DataType::DT_INT32); TFE_TensorHandle* retvals[1] = {nullptr}; int num_retvals = 1; TFE_Execute(minOp, &retvals[0], &num_retvals, status); EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
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)