- Sort Score
- Result 10 results
- Languages All
Results 71 - 74 of 74 for getElementDtype (0.24 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
} OpBuilder builder(stack); Value buffer; if (failed(cutil::CreateInitBufferValue( elem_type->getShape(), stack.getMaxSize(), stack, elem_type->getElementType(), builder, &buffer))) { return failure(); } auto size_var_type = GetSizeVarType(builder); auto var_type = RankedTensorType::get( {}, TF::ResourceType::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
for (auto it : llvm::enumerate(var_access_info.new_operand_values)) { Type type = it.value().getType(); if (type.isa<TensorType>() && type.cast<TensorType>().getElementType().isa<TF::ResourceType>()) { if (!llvm::is_contained(device_var_reads_indices, it.index()) && !llvm::is_contained(device_var_updates_indices, it.index())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
return types; } bool IsResourceType(Type val_type) { if (auto tensor_type = mlir::dyn_cast<mlir::TensorType>(val_type)) { if (mlir::isa<TF::ResourceType>(tensor_type.getElementType())) { return true; } } return false; } bool IsTPUOp(mlir::Operation* op) { return op->hasAttr(TF::kReplicationInfoAttr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
if (dims[dim] == mlir::ShapedType::kDynamic) { dims[dim] = encoding.getBounds()[dim]; } } } return GetTypeFromTFTensorShape(dims, ranked_ty.getElementType()); } // Calculates computation output shape and build OutputDescription for each // output based on static shapes in MLIR module. If an output is a resource
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0)