Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for s0_shape (0.64 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          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: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/linalg_grad.cc

        x = Conj(scope, x);
        y = Conj(scope, y);
      }
    
      const auto x_shape = Shape(scope, x);
      const auto y_shape = Shape(scope, y);
      Output grad_x =
          EinsumGradWrt(scope, grad, y, x_shape, x_subs, y_subs, output_subs);
      Output grad_y =
          EinsumGradWrt(scope, grad, x, y_shape, y_subs, x_subs, output_subs);
    
      if (!absl::StrContains(output_subs, kEllipsis)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 20.4K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/array_grad_test.cc

      std::vector<Output> xs;
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)));
      auto y = Stack(scope_, xs, Stack::Axis(1));
      TensorShape y_shape({1, 2, 2, 3});
      RunTest(xs, {x_shape, x_shape}, {y}, {y_shape});
    }
    
    TEST_F(ArrayGradTest, UnstackGrad_Axis0) {
      TensorShape x_shape({4, 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)
  9. tensorflow/c/tf_tensor.cc

    }
    
    void* TensorInterface::Data() const {
      return tensorflow::TensorCApi::Buffer(tensor_)->data();
    }
    
    void TensorInterface::SetShape(const int64_t* dims, int num_dims) {
      tensorflow::TensorShape s;
      for (int i = 0; i < num_dims; ++i) {
        s.AddDim(dims[i]);
      }
      tensor_.set_shape(s);
    }
    
    Status TensorInterface::BitcastFrom(const TensorInterface& from, DataType type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/tests/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[RHS:.+]] = mhlo.subtract %[[OFFSET]], %[[MUL_MEAN]] : tensor<?xf32>
      // CHECK-DAG: %[[X_SHAPE:.+]] = shape.shape_of %[[X]] : tensor<?x?x?x?xf32> -> tensor<4xindex>
      // CHECK-DAG: %[[MULTIPLIER_BCAST:.+]] = "mhlo.dynamic_broadcast_in_dim"(%[[MULTIPLIER]], %[[X_SHAPE]]) <{broadcast_dimensions = dense<1> : tensor<1xi64>}> : (tensor<?xf32>, tensor<4xindex>) -> tensor<?x?x?x?xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top