Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for VariantType (0.24 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

      auto abstractOp = op.getRegisteredInfo();
      if (!abstractOp) return false;
      return mlir::mhlo::HasTf2XlaFallback(abstractOp->getTypeID());
    }
    
    bool IsVariant(Value value) {
      return mlir::isa<mlir::TF::VariantType>(
          getElementTypeOrSelf(value.getType()));
    }
    
    bool HasOutsideCompiledAncestor(Operation* op) {
      Operation* parent = op->getParentOp();
      while (parent) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

    // return error.
    LogicalResult GetElementShapeFromResultType(
        Type type, llvm::SmallVector<int64_t, 8>* shape) {
      auto variant_type =
          mlir::dyn_cast<TF::VariantType>(getElementTypeOrSelf(type));
      if (!variant_type || variant_type.getSubtypes().size() != 1) return failure();
      TensorType tensor_type = variant_type.getSubtypes().front();
      if (!tensor_type.hasStaticShape()) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        // Returns data type of the result handle. Returned type contains type of
        // the TensorList element as a subtype.
        VariantType handle_dtype() {
          return getElementTypeOrSelf(getHandle().getType()).cast<TF::VariantType>();
        }
      }];
    }
    
    def TF_CaseOp : TF_Op<"Case",
          [DeclareOpInterfaceMethods<SymbolUserOpInterface>]> {
      let summary = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          TF_RETURN_IF_ERROR(
              ConvertDataType(element_dtype->type(), builder, &etype));
        }
        return GetTypeFromTFTensorShape(
            {}, mlir::TF::VariantType::get({mlir::UnrankedTensorType::get(etype)},
                                           etype.getContext()));
      }
    
      if (node.IsWhileNode()) {
        auto* output_shapes = node.attrs().Find("output_shapes");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        auto addn_op = cast<AddNOp>(op);
    
        // TODO(hinsu): Support variant with TensorList type. tf.AddV2 doesn't
        // support variant type so variant types require special handling.
        if (mlir::isa<VariantType>(getElementTypeOrSelf(addn_op.getType())))
          return failure();
        llvm::SmallVector<Value, 4> operands(addn_op.getInputs().begin(),
                                             addn_op.getInputs().end());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      DCOMMENT("InferShapeForListInitOps " << *op << " could be inferred "
                                           << element_type);
      if (!element_type || !element_type.hasStaticShape()) return false;
      auto variant_type = VariantType::get(element_type, op->getContext());
      auto tensor_type = tensorflow::GetTypeFromTFTensorShape({}, variant_type);
      bool changed = RefineResultType(op, handle, tensor_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    OpFoldResult TensorListElementShapeOp::fold(FoldAdaptor) {
      int width =
          getType().cast<ShapedType>().getElementType().getIntOrFloatBitWidth();
      auto variant_type =
          getElementTypeOrSelf(getOperand().getType()).cast<TF::VariantType>();
      if (variant_type.getSubtypes().empty()) return {};
      return ConvertShapeToAttr(variant_type.getSubtypes()[0], width);
    }
    
    //===----------------------------------------------------------------------===//
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
Back to top