- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 68 for shape_b (1.44 sec)
-
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
mlir::DenseIntElementsAttr shape_attr; if (matchPattern(op_state.operands[1], m_Constant(&shape_attr))) { auto shape_ty = op_state.operands[1].getType().dyn_cast<RankedTensorType>(); if (shape_ty != nullptr && shape_ty.hasRank() && shape_ty.getRank() > 1) { llvm::SmallVector<mlir::Attribute, 4> shape; int32_t dim_size = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/variable.h
ImmediateExecutionContext* ctx, DataType dtype, TensorShape shape, absl::optional<std::string> name, const char* raw_device_name, const std::vector<std::string>& component_devices, std::unique_ptr<Variable>* output); // The dtype of the underlying variable. DataType dtype(); // The shape of the underlying variable. TensorShape shape(); // Updates the variable's contents with `handle`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 30 19:43:25 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.h
ParallelTensor(const ParallelDevice& device, std::vector<TensorHandlePtr> tensors, absl::Span<const int64_t> shape, const TF_DataType dtype) : device_(device), tensors_(std::move(tensors)), shape_(std::vector<int64_t>(shape.begin(), shape.end())), dtype_(dtype) {} ParallelTensor(const ParallelDevice& device,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 25 15:21:13 UTC 2023 - 12.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/unfuse_mhlo_batch_norm.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
if (shape_ty.getRank() != 1) return error_handler(llvm::formatv( "requires 'shape' to be rank 1, but got {0}", shape_ty.getRank())); DenseIntElementsAttr shape_attr; if (!matchPattern(shape, m_Constant(&shape_attr))) { // If only shape of `shape` is known, return ranked but dynamic output // shape. if (shape_ty.hasStaticShape()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-input-shapes.pbtxt
# RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -o - | FileCheck %s # Verify that the _input_shapes attribute of the FunctionDef is respected. # This also checks that the output type is correctly inferred based on # that. #CHECK: func private @identity_function0(%arg0: tensor<i32>) -> tensor<i32> node { name: "Placeholder" op: "Placeholder" attr { key: "dtype" value { type: DT_BOOL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 11 19:14:04 UTC 2020 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
for (auto operand_and_idx : llvm::enumerate(cluster_func.getOperands())) { // Skip adding shape op for operands that have static shapes. tensorflow::PartialTensorShape shape( metadata.args(operand_and_idx.index()).shape()); if (shape.IsFullyDefined()) continue; auto shape_op = builder->create<TF::ShapeOp>( cluster_func.getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
public: LogicalResult matchAndRewrite(GetShapeOp shape_op, PatternRewriter &rewriter) const override { Operation *preceding_op = shape_op.getArg().getDefiningOp(); if (auto cast_op = llvm::dyn_cast_or_null<CastOp>(preceding_op)) { // replace this pair by shape.shape_of, so the folding works. rewriter.replaceOpWithNewOp<shape::ShapeOfOp>(shape_op, cast_op.getArg()); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py
CHECK-NEXT: %[[shape:.*]] = tfr.get_shape %x -> !shape.shape CHECK-NEXT: %[[shape_1:.*]] = tfr.get_shape %x -> !shape.shape CHECK-NEXT: %[[len:.*]] = shape.rank %[[shape_1]] : !shape.shape -> !shape.size CHECK-NEXT: %[[index:.*]] = shape.size_to_index %[[len]] : !shape.size CHECK-NEXT: %[[begin:.*]] = arith.constant 0 : index
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 13 16:33:28 UTC 2021 - 28.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/shape-inference-after-legalization.mlir
// RUN: tf-mlir-translate -mlir-tf-to-hlo-text %s -tf-input-shapes=8,16,16,64:64 -tf-xla-emit-use-tuple-args -tf-xla-emit-return-tuple | FileCheck %s // RUN: tf-mlir-translate -mlir-tf-to-hlo-text-via-builder %s -tf-input-shapes=8,16,16,64:64 | FileCheck %s module attributes {tf.versions = {producer = 179 : i32}} {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 23 18:56:13 UTC 2022 - 1.2K bytes - Viewed (0)