- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for negative (0.27 sec)
-
tensorflow/c/c_api_experimental.cc
TF_ShapeAndType& shape = shape_list->items[index]; DCHECK(shape.dims == nullptr) << "Shape at " << index << " is already set!"; DCHECK(num_dims >= 0) << "Number of dimensions cannot be negative!"; shape.num_dims = num_dims; shape.dims = new int64_t[num_dims]; memcpy(shape.dims, dims, sizeof(int64_t) * num_dims); } void TF_ShapeAndTypeListSetUnknownShape(TF_ShapeAndTypeList* shape_list,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_test.cc
ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get()); TensorHandlePtr negative_one_cpu(FloatTensorHandle(3., status.get())); ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get()); components[0] = negative_one_cpu.get(); components[1] = negative_one_cpu.get(); TensorHandlePtr first_negative_one = CreatePerDeviceValues( context.get(), components, first_device_name, status.get());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 08 23:47:35 GMT 2021 - 29.3K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
if (!s.ok()) { GTEST_SKIP() << "Cannot create working directory: " << s; } } // Converts path reference to URI reference. // // If URI scheme is empty, URI reference is `path` relative to current test // root directory. Otherwise, we need to add the `<scheme>://` in front of // this path. // // Note that some filesystem might require a different approach here, for
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K 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);
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) -
tensorflow/c/eager/gradient_checker.cc
vector<float> thetaPlus_data(num_elems); vector<float> thetaMinus_data(num_elems); AbstractTensorHandle* f_outputs[1]; // Numerical Grad Check for (int i = 0; i < num_elems; i++) { // Get relative epsilon value float epsilon = theta_data[i] == 0 ? 1e-4 : std::abs(theta_data[i] * 1e-4); AbstractTensorHandlePtr two_eps; { AbstractTensorHandle* two_eps_raw = nullptr;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 7.3K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
Run({{func_feed, Int32Tensor(3)}}, func_op, -3); VerifyFDef({"neg"}, {{"negation_0", DT_INT32}}, {{"negation", DT_INT32}}, {{"negation_0", "neg:0"}, {"neg:y:0", "negation"}}, {}); } TEST_F(CApiFunctionTest, ZeroOps_Identity) { /* * | * | * | * v */ // Define
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
tensorflow/c/experimental/gradients/math_grad.cc
* dA = U * dB = -U * */ // Grad for A DCHECK(grad_outputs[0]); grad_inputs[0] = grad_outputs[0]; grad_inputs[0]->Ref(); // Grad for B // negate the upstream grad std::string name = "Neg_Sub_Grad_B"; TF_RETURN_IF_ERROR( ops::Neg(ctx, grad_outputs[0], &grad_inputs[1], name.c_str())); return absl::OkStatus(); }
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 15.2K bytes - Viewed (0)