Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shape_of (0.35 sec)

  1. 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)
  2. 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)
Back to top