Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,300 for shake (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/tests/tpu-multiple-while-body-func.mlir

      "func.func"() ({
      ^bb0(%arg0: tensor<i32>):
        "func.return"(%arg0) : (tensor<i32>) -> ()
      }) {sym_name = "main_while_body_4225150", sym_visibility = "private", tf._input_shapes = [#tf_type.shape<>], tf.signature.is_stateful, function_type = (tensor<i32>) -> (tensor<i32>)} : () -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc

                  .getOutputDimensions()
                  .getDefiningOp<shape::ShapeOfOp>();
          // Check if the shape come from the original conv op.
          if (!shape_of_op ||
              shape_of_op.getArg().getDefiningOp<mhlo::ConvolutionOp>() !=
                  conv_op) {
            return failure();
          }
          Value new_shape_of = rewriter.create<shape::ShapeOfOp>(
              mul_op.getLoc(), shape_of_op.getType(), new_conv);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 22:21:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_host_recv_device_context.h

    //  xla::Shape shape(xla::F32, {2, 2}, {}, {})
    //  tsl::AsyncValueRef<std::unique_ptr<se::Event>> done_event =
    //      tsl::MakeConstructedAsyncValueRef<std::unique_ptr<se::Event>>(stream.parent());
    //  done_event->Init();
    //  Tensor dest_cpu_tensor;
    //
    //  XlaHostRecvDeviceContext device_context(&stream, gpu_dst,
    //    shape, done_event);
    //  device_context.CopyDeviceTensorToCPUSync(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc

                            llvm::SmallVectorImpl<int64_t>* shape) {
      shape->reserve(input_shape.dims());
      for (const auto& d : input_shape) {
        shape->push_back(d.size == kTFDynamicSize ? ShapedType::kDynamic : d.size);
      }
    }
    
    Status ConvertToMlirShape(const TensorShapeProto& input_shape,
                              llvm::SmallVectorImpl<int64_t>* shape) {
      shape->reserve(input_shape.dim_size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top