Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DiagPart (0.08 sec)

  1. tensorflow/cc/framework/fuzzing/cc_op_fuzz_gen.cc

                  << " takes zero inputs.\n";
        return false;
      }
    
      // TODO(unda, 253431636): constrained kernel
      std::set<string> constrained_kernel = {"Diag",
                                             "DiagPart",
                                             "GatherNd",
                                             "GatherV2",
                                             "QuantizeAndDequantizeV2",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 27 16:26:51 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/array_grad.cc

    REGISTER_GRADIENT_OP("Fill", FillGrad);
    
    Status DiagGrad(const Scope& scope, const Operation& op,
                    const std::vector<Output>& grad_inputs,
                    std::vector<Output>* grad_outputs) {
      grad_outputs->push_back(DiagPart(scope, grad_inputs[0]));
      return scope.status();
    }
    REGISTER_GRADIENT_OP("Diag", DiagGrad);
    
    Status DiagPartGrad(const Scope& scope, const Operation& op,
                        const std::vector<Output>& grad_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/array_grad_test.cc

      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(ArrayGradTest, DiagPartGrad) {
      TensorShape x_shape({5, 2, 5, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      auto y = DiagPart(scope_, x);
      TensorShape y_shape({5, 2});
      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(ArrayGradTest, MatrixDiagGrad) {
      TensorShape x_shape({5, 2});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
Back to top