- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,675 for scope_ (0.23 sec)
-
tensorflow/cc/gradients/data_flow_grad_test.cc
TensorShape d1_shape({2}); TensorShape d2_shape({2, 2}); std::vector<Output> indices = {Const(scope_, 2), Const(scope_, {1, 0})}; std::vector<Output> data = { Placeholder(scope_, DT_FLOAT, Placeholder::Shape(d1_shape)), Placeholder(scope_, DT_FLOAT, Placeholder::Shape(d2_shape))}; auto y = DynamicStitch(scope_, indices, data); TensorShape y_shape({3, 2}); RunTest(data, {d1_shape, d2_shape}, {y}, {y_shape}); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 02 18:49:13 UTC 2018 - 2.6K bytes - Viewed (0) -
tensorflow/cc/gradients/linalg_grad_test.cc
TF_ASSERT_OK(scope_.status()); float max_error; TF_ASSERT_OK((ComputeGradientError<float, float, float>( scope_, xs, x_shapes, ys, y_shapes, &max_error))); EXPECT_LT(max_error, 1e-3); } Scope scope_; }; TEST_F(LinalgGradTest, Einsum_Transpose) { TensorShape x_shape({2, 3}); Output x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 07 23:11:54 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/cc/gradients/nn_grad_test.cc
TensorShape scale_shape({shape.dim_size(channel_dim)}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); auto scale = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(scale_shape)); auto offset = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(scale_shape)); auto mean = ops::ZerosLike(scope_, scale); auto var = ops::OnesLike(scope_, scale); if (!channel_first) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 20:45:22 UTC 2022 - 15K bytes - Viewed (0) -
tensorflow/cc/framework/while_gradients_test.cc
TEST_F(WhileGradientsTest, MultipleDevices) { // Make sure loop is created on cpu0 scope_ = scope_.WithDevice("/cpu:0"); // Create loop: while (i < 10) i += j Init(2); CreateLoop( [](const Scope& s, const std::vector<Output>& inputs, Output* output) { *output = ops::Less(s, inputs[0], 10); return s.status(); }, [](const Scope& s, const std::vector<Output>& inputs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 27 20:32:17 UTC 2017 - 7.7K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad_test.cc
auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); auto indices = Cast(scope_, Const(scope_, {{1}, {0}}), DT_INT64); auto y = GatherNd(scope_, x, indices); RunTest(x, shape, y, shape); } TEST_F(ArrayGradTest, CheckNumericsGrad) { TensorShape shape({5, 2}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); auto y = CheckNumerics(scope_, x, "CheckNumerics failed");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 19.3K bytes - Viewed (0) -
tensorflow/cc/gradients/image_grad_test.cc
Output* x, Output* y) { *x = Const<T>(scope_, x_data); switch (op_type) { case RESIZE_NEAREST: *y = ResizeNearestNeighbor( scope_, *x, y_shape, ResizeNearestNeighbor::AlignCorners(align_corners)); return; case RESIZE_BILINEAR: *y = ResizeBilinear(scope_, *x, y_shape, ResizeBilinear::AlignCorners(align_corners)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 04:08:05 UTC 2019 - 12.1K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 36K bytes - Viewed (0) -
tensorflow/cc/framework/gradients_test.cc
? StopGradient(scope_, (Identity(scope_, z))).output : Identity(scope_, z).output; auto out1 = stop_outputs[1] ? StopGradient(scope_, (Identity(scope_, z))).output : Identity(scope_, z).output; auto out2 = stop_outputs[2] ? StopGradient(scope_, (Identity(scope_, z))).output
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 25K bytes - Viewed (0) -
tensorflow/cc/gradients/functional_grad_test.cc
const OutputList& ys, const std::vector<TensorShape>& y_shapes) { TF_ASSERT_OK(scope_.status()); float max_error; TF_ASSERT_OK((ComputeGradientError<float, float, float>( scope_, xs, x_shapes, ys, y_shapes, &max_error))); EXPECT_LT(max_error, 1e-3); } Scope scope_; }; TEST_F(FunctionGradTest, PartitionedCallGrad) { FunctionDefLibrary f_lib_proto;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 26 14:42:24 UTC 2021 - 3K bytes - Viewed (0) -
tensorflow/cc/gradients/manip_grad_test.cc
class ManipGradTest : public ::testing::Test { protected: ManipGradTest() : scope_(Scope::NewRootScope()) {} void RunTest(const Output& x, const TensorShape& x_shape, const Output& y, const TensorShape& y_shape) { TF_ASSERT_OK(scope_.status()); float max_error; TF_ASSERT_OK((ComputeGradientError<float, float, float>( scope_, {x}, {x_shape}, {y}, {y_shape}, &max_error))); EXPECT_LT(max_error, 1e-4); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 19 12:19:42 UTC 2020 - 1.6K bytes - Viewed (0)