- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TransposeGrad (0.09 sec)
-
tensorflow/cc/gradients/array_grad.cc
auto input_shape = Shape(scope, op.input(0)); grad_outputs->push_back(Reshape(scope, grad_inputs[0], input_shape)); return scope.status(); } REGISTER_GRADIENT_OP("Squeeze", SqueezeGrad); Status TransposeGrad(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { auto inverted_perm = InvertPermutation(scope, op.input(1));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 31.7K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad_test.cc
auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); TensorShape y_shape({5, 2}); auto y = Squeeze(scope_, x); RunTest(x, x_shape, y, y_shape); } TEST_F(ArrayGradTest, TransposeGrad) { TensorShape x_shape({5, 2}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); TensorShape y_shape({2, 5}); auto y = Transpose(scope_, x, {1, 0}); RunTest(x, x_shape, y, y_shape);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 19.3K bytes - Viewed (0)