Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,700 for shake (0.25 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

      auto value_type = mlir::cast<RankedTensorType>(value.getType());
      auto shape = value_type.getShape();
      SmallVector<int64_t, 4> transposed_shape(shape.begin(), shape.end());
      for (int i = 0, end = shape.size(); i < end; ++i) {
        transposed_shape[i] = shape[permutation[i]];
      }
      auto transposed_type =
          RankedTensorType::get(transposed_shape, value_type.getElementType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/array_ops.h

    // Returns a tensor of zeros with the same shape and type as x.
    Status ZerosLike(AbstractContext* ctx, AbstractTensorHandle* const x,
                     AbstractTensorHandle** y, const char* name = nullptr,
                     const char* raw_device_name = nullptr);
    
    // Returns the shape of a tensor.
    Status Shape(AbstractContext* ctx, AbstractTensorHandle* const input,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

    }
    
    // Converts the tensor shape proto into an MLIR shape attribute.
    absl::StatusOr<mlir::Attribute> ConvertTensorShapeProto(
        const TensorShapeProto& shape, mlir::MLIRContext* context) {
      if (shape.unknown_rank())
        return mlir::TF::ShapeAttr::get(context, std::nullopt);
    
      llvm::SmallVector<int64_t, 4> dims;
      dims.reserve(shape.dim().size());
      for (const auto& dim : shape.dim()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  4. tensorflow/c/ops.h

    // if (TF_GetCode(status) != TF_OK) {
    //   // handle error
    // }
    //
    // SHAPE INFERENCE
    // ---------------
    //
    // You can provide a shape inference function that TensorFlow will call when it
    // wants to understand the shape of outputs that the op will produce. Use the
    // TF_OpDefinitionBuilderSetShapeInferenceFunction function to register a shape
    // inference function pointer with TensorFlow. The following is an example of a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/mlir_passthrough_op.pbtxt

      attr {
        key: "_user_specified_name"
        value {
          s: "x"
        }
      }
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "shape"
        value {
          shape {
            dim {
              size: 10
            }
          }
        }
      }
    }
    node {
      name: "y"
      op: "Placeholder"
      attr {
        key: "_user_specified_name"
        value {
          s: "y"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/ops.cc

          return;
        }
        if (!TensorShape{e.tensor.shape()}.IsSameSize(
                TensorShape{first.tensor.shape()})) {
          status = errors::InvalidArgument(
              "Initializer list components should all have the same shape");
          return;
        }
      }
    
      // Form the new shape.
      TensorShape shape{static_cast<int64_t>(v.size())};
      shape.AppendShape(TensorShape{first.tensor.shape()});
    
      Tensor t(first.tensor.dtype(), shape);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/pjrt_tensor_buffer_util.cc

    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    
    static size_t GetTensorSize(const TensorShape& shape, const DataType dtype) {
      return shape.num_elements() * DataTypeSize(dtype);
    }
    
    absl::StatusOr<Tensor> MakeTensorFromPjRtBuffer(
        const DataType dtype, const TensorShape& shape,
        std::unique_ptr<xla::PjRtBuffer> pjrt_buffer) {
      TF_ASSIGN_OR_RETURN(std::unique_ptr<xla::PjRtBuffer::ExternalReference> ref,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 14 18:14:47 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/tests/ops.mlir

      func.return %0 : !tfr.tensor<K>
    }
    
    // -----
    
    // CHECK-LABEL: get_shape
    func.func @get_shape(%arg0: !tfr.tensor) -> (!shape.shape, !shape.shape) {
      %0 = tfr.get_shape %arg0 -> !shape.shape
      %1 = "tfr.get_shape"(%arg0) : (!tfr.tensor) -> !shape.shape
      func.return %0, %1 : !shape.shape, !shape.shape
    }
    
    // -----
    
    // CHECK-LABEL: get_real_shape
    func.func @get_real_shape(%arg0: tensor<1x2xf32>) -> tensor<2xindex> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/pjrt_device_context.cc

              cpu_tensor->shape(), cpu_tensor->dtype(), std::nullopt);
      TF_ASSIGN_OR_RETURN(xla::Shape shape,
                          shape_determination_fns.shape_representation_fn(
                              cpu_tensor->shape(), cpu_tensor->dtype(),
                              /*fast_mem=*/false, layout_preference));
      const xla::Layout* device_layout = &(shape.layout());
      // The device id should match the local_hardware_id in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:49:31 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/math.mlir

      // CHECK-NEXT:   subgraphs: [ {
      // CHECK-NEXT:     tensors: [ {
      // CHECK-NEXT:       shape: [ 4 ],
      // CHECK-NEXT:       buffer: 1,
      // CHECK-NEXT:       name: "arg0",
      // CHECK-NEXT:       quantization: {
      // CHECK-EMPTY:
      // CHECK-NEXT:       },
      // CHECK-NEXT:       has_rank: true
      // CHECK-NEXT:     }, {
      // CHECK-NEXT:       shape: [ 4 ],
      // CHECK-NEXT:       buffer: 2,
      // CHECK-NEXT:       name: "Const",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top