- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 122 for getn (0.15 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
uint32_t num_replicas = replicate.getN(); llvm::SmallVector<int32_t, 4> group_assignment_val; for (int i = 0; i < num_replicas; ++i) group_assignment_val.push_back(i); Value group_assignment = builder.create<ConstOp>( block_arg.getLoc(), DenseIntElementsAttr::get( RankedTensorType::get({1, num_replicas}, builder.getIntegerType(32)), group_assignment_val));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
// then update the OperandSegmentSize attribute. if (send_op) { int32_t operand_sizes[] = {static_cast<int32_t>(send_op.getN()), static_cast<int32_t>(send_op.getNN()), 1}; auto operand_size_attr = builder.getDenseI32ArrayAttr(operand_sizes); NamedAttrList attrs(send_op->getAttrs());
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/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
for (llvm::StringRef device : device_list) { state_vars.push_back(builder->create<TF::VarHandleOp>( loc, llvm::ArrayRef<Type>{RankedTensorType::get( {}, TF::ResourceType::get(llvm::ArrayRef<TensorType>{key_type}, builder->getContext()))}, llvm::ArrayRef<Value>{}, llvm::ArrayRef<NamedAttribute>{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
// invariant. Shape ops are rewritten to be invariant when possible, prior to // hoisting ops. void HoistReplicateInvariantOps(tf_device::ReplicateOp replicate_op) { const int num_replicas = replicate_op.getN(); Block* replicate_block = &replicate_op.GetBody(); // A `ShapeOp` that directly depends on a `tf_device.replicate` param and does // not have a virtual device is assumed to return the same shape across all
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
auto& arg = packed_args.emplace_back(); arg.ssaName = std::get<0>(argAndType); arg.type = std::get<1>(argAndType); } if (parser.parseRegion(body, packed_args)) return failure(); // Add derived `operandSegmentSizes` attribute based on parsed operands. if (!result.attributes.get(kOperandSegmentSizesAttr)) { int32_t num_replicated_inputs = replicated_inputs.size() * n;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
operand.get().replaceUsesWithIf( reduced_launch_op.getResult(operand.getOperandNumber()), operand_not_in_launch); } // Handle pass through block arguments. for (OpOperand& operand : original_launch_op.GetBody().getTerminator()->getOpOperands()) { if (mlir::isa<BlockArgument>(operand.get())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
ModuleOp::create(mlir::UnknownLoc::get(entry_func.getContext()), absl::StrCat("module_", module_name)); auto parent_module = entry_func->getParentOfType<ModuleOp>(); auto versions_attr = parent_module->getAttr(kVersionsAttr); if (!versions_attr) return parent_module.emitError(CreateMissingAttributeMsg(kVersionsAttr)); module_for_func.get().getOperation()->setAttr(kVersionsAttr, versions_attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
// types are static. SmallVector<DenseIntElementsAttr, 4> indices; indices.reserve(op.getN()); for (auto it : llvm::zip(op.getIndices(), op.getData())) { Value index = std::get<0>(it); Value data = std::get<1>(it); DenseIntElementsAttr index_attr; if (!matchPattern(index, m_Constant(&index_attr))) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
if (!HasRankAtLeast(op.getX(), 2)) { return op.emitOpError("requires lhs operand to have rank at least two"); } if (!HasRankAtLeast(op.getY(), 2)) { return op.emitOpError("requires rhs operand to have rank at least two"); } RankedTensorType x_ty = GetRankedTensorTypeForOperand(op.getX()); RankedTensorType y_ty = GetRankedTensorTypeForOperand(op.getY()); if (!x_ty || !y_ty) return success();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
// `stablehlo.recv`. effects.emplace_back(MemoryEffects::Write::get(), ResourceEffects::Send::get()); effects.emplace_back(MemoryEffects::Write::get(), ResourceEffects::Recv::get()); effects.emplace_back(MemoryEffects::Write::get(), ResourceEffects::XlaHostCompute::get()); } } LogicalResult XlaCallModuleOp::verifySymbolUses(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)