Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for s0_shape (0.36 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      if (s0_shape == s1_shape) return;
    
      for (int i = bcasted_shape.size(); i > 0; --i) {
        int idx = bcasted_shape.size() - i;
        int s0_idx = i > s0_shape.size() ? -1 : s0_shape.size() - i;
        int s1_idx = i > s1_shape.size() ? -1 : s1_shape.size() - i;
        if (s0_idx == -1) {
          r0.push_back(idx);
          if (s1_shape[s1_idx] == 1) r1.push_back(idx);
        } else if (s1_idx == -1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/cc/framework/gradient_checker_test.cc

      xs.push_back(Placeholder(scope, DT_DOUBLE, Placeholder::Shape(x_shape)));
      xs.push_back(Placeholder(scope, DT_DOUBLE, Placeholder::Shape(x_shape)));
      auto y = Stack(scope, xs, Stack::Axis(0));
      TensorShape y_shape({2, 1, 2, 3});
      double max_error;
      TF_ASSERT_OK((ComputeGradientError<double, double, double>(
          scope, xs, {x_shape, x_shape}, {y}, {y_shape}, &max_error)));
      EXPECT_LT(max_error, 1e-10);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 06 15:54:08 UTC 2018
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/math_grad_test.cc

      auto y = Sub(scope_, x1, x2);
      RunTest({x1, x2}, {x1_shape, x2_shape}, {y}, {x1_shape});
    }
    
    TEST_F(NaryGradTest, Mul) {
      TensorShape x1_shape({3, 2, 5});
      TensorShape x2_shape({2, 5});
      auto x1 = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x1_shape));
      auto x2 = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x2_shape));
      auto y = Mul(scope_, x1, x2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  6. tensorflow/c/tf_shape.h

    #endif
    
    // An opaque type corresponding to a shape in tensorflow. In the future,
    // we may expose the ABI of TF_Shape for performance reasons.
    typedef struct TF_Shape TF_Shape;
    
    // Return a new, unknown rank shape object. The caller is responsible for
    // calling TF_DeleteShape to deallocate and destroy the returned shape.
    TF_CAPI_EXPORT extern TF_Shape* TF_NewShape();
    
    // Returns the rank of `shape`. If `shape` has unknown rank, returns -1.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 00:25:41 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  7. tensorflow/c/tf_shape.cc

    #include "tensorflow/c/tf_shape.h"
    
    #include <stdint.h>
    
    #include "tensorflow/c/tf_shape_internal.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    
    extern "C" {
    
    TF_Shape* TF_NewShape() {
      return tensorflow::wrap(new tensorflow::PartialTensorShape());
    }
    
    int TF_ShapeDims(const TF_Shape* shape) {
      return tensorflow::unwrap(shape)->dims();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 00:25:41 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/nn_grad_test.cc

      auto y = AvgPool3D(scope_, x, ksize, strides, "SAME");
      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(NNGradTest, LRN) {
      TensorShape x_shape({1, 1, 2, 1});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      auto y = LRN(scope_, x);
      RunTest(x, x_shape, y, x_shape);
    }
    
    TEST_F(NNGradTest, SoftplusGrad) {
      TensorShape shape({3, 7});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 20:45:22 UTC 2022
    - 15K bytes
    - Viewed (0)
  9. tensorflow/cc/gradients/image_grad_test.cc

      template <typename T>
      void MakeOp(const OpType op_type, const Tensor& x_data, const Input& y_shape,
                  const bool align_corners, const bool half_pixel_centers,
                  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;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 15 04:08:05 UTC 2019
    - 12.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

              contracting_dims.add(c)
          x_signature = [
              None if c not in contracting_dims else x_shape[cidx]
              for cidx, c in enumerate(x_labels)
          ]
          y_signature = [
              None if c not in contracting_dims else y_shape[cidx]
              for cidx, c in enumerate(y_labels)
          ]
        return x_shape, y_shape, bias_shape, x_signature, y_signature
    
      def _create_einsum_model(
          self,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top