- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for VariantType (0.21 sec)
-
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
const bool has_variant_input = llvm::any_of(op->getOperands(), [](Value val) { return val.getType().cast<TensorType>().getElementType().isa<VariantType>(); }); const bool has_variant_output = llvm::any_of(op->getResultTypes(), [](Type t) { return t.cast<TensorType>().getElementType().isa<VariantType>(); }); return has_variant_input || has_variant_output; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
Type elementType = getElementTypeOrSelf(op->getResult(0)); Type newType = nullptr; if (auto variant = dyn_cast<TF::VariantType>(elementType)) { ArrayRef<TensorType> sub = variant.getSubtypes(); if (sub.size() == 1) { auto inner = sub[0]; if (!isa<TF::VariantType>(inner)) { newType = inner; } } } if (!newType) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_types.h
using ::mlir::tf_type::TensorFlowRefType; // NOLINT using ::mlir::tf_type::TensorFlowType; // NOLINT using ::mlir::tf_type::TensorFlowTypeWithSubtype; // NOLINT using ::mlir::tf_type::VariantType; // NOLINT #define HANDLE_TF_TYPE(tftype, enumerant, name) \ using tftype##Type = mlir::tf_type::tftype##Type; #include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.def"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 29 04:41:05 UTC 2021 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
// if `type` is a tensor of variant. Otherwise, returns `type` unmodified. Type VariantToUnrankedTensorType(Type type, Value value) { TF::VariantType variant_ty = getElementTypeOrSelf(type).dyn_cast<TF::VariantType>(); if (!variant_ty) { return type; } if (!variant_ty.getSubtypes().empty()) { // Short-circut if the variant type has subtype info.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
std::unique_ptr<std::vector<tensorflow::mutex_lock>> locks; std::unique_ptr<std::vector<tensorflow::tf_shared_lock>> shared_locks; }; tensorflow::Status EnsureSparseVariableAccess( TF_OpKernelContext* ctx, bool variantType, void (*copyFunc)(TF_OpKernelContext* ctx, TF_Tensor* source, TF_Tensor* dest), tensorflow::Var* var, bool lock_held = false) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
StringRef config = recv_op ? recv_op.getConfig() : send_op.getConfig(); // Create XlaRecvTPUEmbeddingDeduplicationData op. OpBuilder builder(region); auto output_ty = RankedTensorType::get({}, VariantType::get(region->getContext())); auto dedup_op = builder.create<XlaRecvTPUEmbeddingDeduplicationDataOp>( loc, output_ty, config); // Rewrite RecvTPUEmbeddingActivations op to the corresponding internal op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/convert_type.cc
return builder.getIntegerType(64, /*isSigned=*/false); case tflite::TensorType_RESOURCE: return mlir::TF::ResourceType::get(builder.getContext()); case tflite::TensorType_VARIANT: return mlir::TF::VariantType::get(builder.getContext()); } } tensorflow::DataType TflTypeToTfType(tflite::TensorType type) { switch (type) { case tflite::TensorType_BOOL: return tensorflow::DT_BOOL;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.cc
// require "raising" later. for (const Type type : inst->getResultTypes()) { if (const TensorType tensor_type = mlir::dyn_cast<TensorType>(type)) { if (mlir::isa<VariantType>(tensor_type.getElementType())) { return false; } } } // Operations that execute function calls shouldn't be constant folded.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc
while_input_types, SmallVector<Location>(while_input_types.size(), loc)); auto get_next = builder.create<IteratorGetNextAsOptionalOp>( loc, RankedTensorType::get({}, builder.getType<VariantType>()), anonymous_iterator.getResult(), anonymous_iterator.getOutputTypes(), anonymous_iterator.getOutputShapes()); auto optional_has_value = builder.create<OptionalHasValueOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
tensorflow::GetTypeFromTFTensorShape(shape, nested_elem_type)); } else { tensor_types.push_back(UnrankedTensorType::get(nested_elem_type)); } } elem_type = mlir::TF::VariantType::get(tensor_types, builder.getContext()); } if (IsQuantized(tensor) && !get_storage) { TF_ASSIGN_OR_RETURN(elem_type, GetQuantizedType(tensor, builder, is_constant));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0)