- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TF_FLOAT (0.04 seconds)
-
tensorflow/c/eager/c_api_test.cc
TFE_OpSetAttrType(op, "dtype", TF_FLOAT); TFE_OpAddInput(op, var_handle, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_Execute(op, &h, &num_retvals, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); CHECK_EQ(1, num_retvals); CHECK(h); CHECK_EQ(TF_FLOAT, TFE_TensorHandleDataType(h));
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 09 05:56:18 GMT 2025 - 94.6K bytes - Click Count (0) -
tensorflow/c/c_api_test.cc
// data. TF_Tensor* t = TF_NewTensor(TF_FLOAT, nullptr, 0, nullptr, 0, &NoOpDeallocator, nullptr); ASSERT_TRUE(t == nullptr); } TEST(CAPI, AllocateTensor) { const int num_bytes = 6 * sizeof(float); int64_t dims[] = {2, 3}; TF_Tensor* t = TF_AllocateTensor(TF_FLOAT, dims, 2, num_bytes); EXPECT_EQ(TF_FLOAT, TF_TensorType(t)); EXPECT_EQ(2, TF_NumDims(t));Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 97.3K bytes - Click Count (0) -
tensorflow/c/c_api_function_test.cc
TF_Tensor* tensor_shape = Int32Tensor({37, 1}); TF_Operation* shape = Const(tensor_shape, func_graph.get(), s.get(), "shape"); TF_Operation* random = RandomUniform(shape, TF_FLOAT, func_graph.get(), s.get()); TF_Output outputs[] = {{random, 0}}; *func = TF_GraphToFunction(func_graph.get(), name, /*append_hash_to_fn_name=*/false, -1,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 63.9K bytes - Click Count (1)