Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for s1_shape (0.21 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h

    //
    //   Slice(op, begin, size <must be constant>) =>
    //     Slice(op, begin, actual_size(op.shape(), size, begin));
    //       _XlaCompileTimeConstantInputs={2}
    //
    // where
    //
    //   actual_size(op_shape, size, begin)[i] =
    //     size[i] == -1 ? (op_shape[i] - size[i])
    //                   : size[i]
    //
    // This pass, combined with jit/partially_decluster_pass, reduces the number of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 26 21:01:34 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/c/tf_shape_internal.h

    #define TENSORFLOW_C_TF_SHAPE_INTERNAL_H_
    
    #include "tensorflow/c/conversion_macros.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    
    typedef struct TF_Shape TF_Shape;
    
    namespace tensorflow {
    
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::PartialTensorShape, TF_Shape);
    
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 00:25:41 UTC 2020
    - 1K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_tensor.cc

                                            device_ordinal);
      for (auto& index_to_buffer : shaped_buffer.buffers()) {
        xla::Shape subshape =
            xla::ShapeUtil::GetSubshape(on_device_shape, index_to_buffer.first);
        uint64 size =
            client->backend().transfer_manager()->GetByteSizeRequirement(subshape);
        TF_ASSIGN_OR_RETURN(se::OwningDeviceMemory buffer,
                            client->backend().memory_allocator()->Allocate(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/utils.h

      std::vector<int64_t> in_shape{input_type.getShape().vec()};
      std::vector<int64_t> out_shape{output_type.getShape().vec()};
    
      // If the reshape changes the number of dimensions so it cannot be interpreted
      // as a transpose.
      if (in_shape.size() != out_shape.size()) {
        return false;
      }
    
      in_shape.erase(std::remove(in_shape.begin(), in_shape.end(), 1),
                     in_shape.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/cc/gradients/image_grad.cc

      // The internal gradient implementation needs the shape of the input image.
      // x_shape = shape(x)[1:3]
      //         = slice(shape(x), {1}, {3 - 1})
      auto x_shape = Slice(scope, Shape(scope, op.input(0)), {1}, {2});
      grad_outputs->push_back(internal::ResizeNearestNeighborGrad(
          scope, grad_inputs[0], x_shape,
          internal::ResizeNearestNeighborGrad::AlignCorners(align_corners)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 11 00:29:23 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top