- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 234 for tensorshape (0.3 sec)
-
tensorflow/cc/gradients/linalg_grad_test.cc
TensorShape y_shape({3, 3, 2}); RunTest({x}, {x_shape}, {y}, {y_shape}); } TEST_F(LinalgGradTest, Einsum_MatMul) { TensorShape x_shape({2, 3}); TensorShape y_shape({3, 3}); Output x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); Output y = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(y_shape)); auto z = Einsum(scope_, {x, y}, "ij,jk->ik"); TensorShape z_shape({2, 3});
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
} TEST_F(NNGradTest, L2LossGrad) { TensorShape x_shape({5, 2}); TensorShape y_shape({1}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); auto y = L2Loss(scope_, x); RunTest(x, x_shape, y, y_shape); } TEST_F(NNGradTest, BiasAddGradHelper) { TensorShape shape({4, 5}); TensorShape bias_shape({5});
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/gradients/array_grad_test.cc
TensorShape y_shape = TensorShape({5, 1}); RunTest({x}, {x_shape}, y.output, {y_shape, y_shape}); } TEST_F(ArrayGradTest, SplitVGrad) { TensorShape x_shape({2, 6}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); auto y = SplitV(scope_, x, {1, 2, 3}, /*axis=*/1, /*num_split=*/3); RunTest({x}, {x_shape}, y.output, {TensorShape({2, 1}), TensorShape({2, 2}), TensorShape({2, 3})}); }
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/c/kernels/summary_op_benchmark_test.cc
void BM_ScalarSummary##name##device(::testing::benchmark::State& state) { \ TensorShape tensorshape(DIMARGS dims); \ auto g = BM_ScalarSummaryOp(tensorshape, #tag, value); \ test::Benchmark("cpu", g, /*old_benchmark_api=*/false).Run(state); \ } \
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 25 00:59:20 UTC 2020 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc
SetDevice("GPU"); Tensor origin_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2})); test::FillValues<float>(&origin_cpu_tensor, {1.2, 2.3, 3.4, 4.5}); Tensor device_tensor(device_allocator_, DT_FLOAT, TensorShape({2, 2})); Tensor dest_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2})); stream_executor::Platform* platform =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 22:46:36 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compiler_options_util_test.cc
GetShapeDeterminationFns() { XlaHelpers::ShapeRepresentationFn shape_representation_fn = [](const TensorShape&, DataType, bool, XlaLayoutPreference) { return xla::Shape(); }; XlaShapeLayoutHelpers::LayoutPreferenceFn layout_preference_fn = [](const TensorShape&, DataType, std::optional<XlaArgument::Kind>) { return tensorflow::XlaLayoutPreference::kTpuPreferLinearLayout; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 29 01:41:20 UTC 2023 - 14.8K bytes - Viewed (0) -
tensorflow/cc/gradients/data_flow_grad_test.cc
TEST_F(DataFlowGradTest, DynamicStitchGrad) { 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});
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/image_grad_test.cc
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/c/kernels/tensor_shape_utils_test.cc
ASSERT_EQ(tensor.shape().DebugString(), ShapeDebugString(tf_tensor)); } TEST(ShapeDebugString, RegularShape) { TestShapeMatch(TensorShape({5, 4, 7})); } TEST(ShapeDebugString, ScalarShape) { TestShapeMatch(TensorShape({})); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 03 21:44:58 UTC 2020 - 1.8K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad_test.cc
// x.shape = [m, k] x_shape = tx ? TensorShape({k, m}) : TensorShape({m, k}); } shapes->push_back(x_shape); TensorShape y_shape; if (is_y_batch) { // y.shape = [b, k, n] y_shape = ty ? TensorShape({b, n, k}) : TensorShape({b, k, n}); } else { // y.shape = [k, n] y_shape = ty ? TensorShape({n, k}) : TensorShape({k, n}); } shapes->push_back(y_shape);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 36K bytes - Viewed (0)