- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getIsPacked (0.38 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
if (metadata) { num_cores_per_replica = metadata.getNumCoresPerReplica(); } else if (first_partitioned_input.getIsPacked()) { return first_partitioned_input->emitOpError() << "num cores per replica unavailable, metadata missing?"; } const bool packed_input = first_partitioned_input.getIsPacked(); const size_t num_operands_expected = packed_input ? 1 : num_cores_per_replica; if (metadata &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 24 23:08:55 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc
StringAttr attr) { int arity = rep.getInputs().size(); if (rep.getIsPacked() && arity != 1) { rep.emitOpError( "TF2XLA TPU bridge input check: packed with number of inputs not 1.") << " num_replicas=" << num_replicas << " no. of inputs=" << arity; return false; } else if (!rep.getIsPacked() && arity != num_replicas) { rep.emitOpError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 06:51:01 UTC 2024 - 21.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc
!AllResourceTypesHaveSubtypes(partitioned_input.getInputs().getTypes())) continue; const auto inputs = partitioned_input.getInputs(); const bool packed_input = partitioned_input.getIsPacked(); int num_cores_per_replica = partitioned_input.getN(); if (num_cores_per_replica_attr) { num_cores_per_replica = num_cores_per_replica_attr.getInt(); } else if (packed_input) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
} else { use_in_forward = true; } if (TF::TPUReplicatedInputOp input = llvm::dyn_cast<TF::TPUReplicatedInputOp>(user)) { if (!input.getIsPacked()) { input.emitOpError() << "unexpected variable input, not packed"; return LogicalResult::failure(); } if (is_variable) {
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/internal/passes/tpu_cluster_formation.cc
llvm::SmallVector<mlir::TF::TPUReplicatedInputOp, 8> packed_ops; for (const auto& pos_and_input : llvm::enumerate(replicated_input_ops)) { auto input = pos_and_input.value(); bool is_packed = input.getIsPacked(); const int num_operands = input->getNumOperands(); int num_inputs = is_packed ? 1 : num_replicas; if (num_operands != num_inputs) return input->emitOpError() << "requires " << num_inputs << " operands";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
} else { use_in_forward = true; } if (TF::TPUReplicatedInputOp input = llvm::dyn_cast<TF::TPUReplicatedInputOp>(user)) { if (!input.getIsPacked()) { input.emitOpError() << "unexpected variable input, not packed"; return LogicalResult::failure(); } if (is_variable) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
const mlir::ArrayAttr partition_dims = op.getPartitionDims(); for (const mlir::Attribute &dim : partition_dims) { num_partitions *= dim.cast<IntegerAttr>().getInt(); } const bool is_packed = op.getIsPacked(); const bool replicated = partition_dims.empty(); const int num_inputs_expected = is_packed ? 1 : num_partitions; if (!((replicated && !is_packed) || (op.getN() == num_inputs_expected))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)