- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for shape_of (2.41 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
auto element_type = x.getElementType(); auto shape_x = x.getShape(); auto shape_y = y.getShape(); if (shape_x.size() == shape_y.size()) { llvm::SmallVector<int64_t, 4> out_shape(shape_x.size()); for (int i = 0; i < shape_x.size(); i++) { auto x_val = shape_x[i]; auto y_val = shape_y[i]; out_shape[i] = std::max(x_val, y_val); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
llvm::ArrayRef<int64_t> shape_ref = mlir::cast<TensorType>(tensor_attr.getType()).getShape(); if (mlir::failed(check_shape(shape_ref))) return std::nullopt; shape = std::vector<int32_t>(shape_ref.begin(), shape_ref.end()); } else if (type.hasRank()) { llvm::ArrayRef<int64_t> shape_ref = type.getShape(); if (mlir::failed(check_shape(shape_ref))) return std::nullopt;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
return ComputeOutputComponent(ValuePort(id.getInput()), values); return nullptr; } if (auto shape_op = dyn_cast<TF::ShapeOp>(op)) { // No shape available in an unranked tensor type. auto operand_ty = mlir::dyn_cast<RankedTensorType>(shape_op.getOperand().getType()); if (!operand_ty) return nullptr; // Shape op has a single output so the first element should always be zero
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0)