Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for relu_grad (0.21 sec)

  1. tensorflow/cc/gradients/nn_grad_test.cc

    }
    
    TEST_F(NNGradTest, EluGrad) {
      TensorShape shape({5, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
      auto y = Elu(scope_, x);
      Tensor x_init_value = test::AsTensor<float>(
          {-0.9f, -0.7f, -0.5f, -0.3f, -0.1f, 0.1f, 0.3f, 0.5f, 0.7f, 0.9f},
          {5, 2});
      RunTest(x, x_init_value, y, shape);
    }
    
    TEST_F(NNGradTest, SeluGrad) {
      TensorShape shape({5, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 20:45:22 UTC 2022
    - 15K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/nn_grad.cc

                           std::vector<Output>* grad_outputs) {
      auto dx = internal::Relu6Grad(scope, grad_inputs[0], op.input(0));
      grad_outputs->push_back(dx);
      return scope.status();
    }
    REGISTER_GRADIENT_OP("Relu6", Relu6GradHelper);
    
    Status LeakyReluGradHelper(const Scope& scope, const Operation& op,
                               const std::vector<Output>& grad_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 23:34:33 UTC 2022
    - 24.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

              (MHLO_ClampOp (MHLO_ConstantOp (GetScalarOfType<0> $input)), $input,
                           (MHLO_ConstantOp (GetScalarOfType<6> $input))),
              [(TF_IntOrFpTensor $input)]>;
    
    // ReluGrad(gradients, features) = gradients * (features > 0)
    // The condition that $gradients and $features need to have the same shape is
    // implicitly enforced: $zero is created to have the same shape as $features,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
Back to top