- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 79 for emitOpError (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc
if (!llvm::equal(partition_dims, op_partition_dims)) { return partitioned_input->emitOpError() << "expects partition_dims = " << partition_dims << " but found " << op_partition_dims; } else if (partitioned_input.getIsPacked() != first_partitioned_input.getIsPacked()) { return partitioned_input->emitOpError() << "packing should match across ops";
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/ir/tf_ops_n_z.cc
return op.emitOpError() << "requires depth to be a scalar"; } if (!IsOfRankOrUnranked(op.getOnValue(), 0)) { return op.emitOpError() << "requires on_value to be a scalar"; } if (!IsOfRankOrUnranked(op.getOffValue(), 0)) { return op.emitOpError() << "requires off_value to be a scalar"; } DenseIntElementsAttr depth_attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
auto sharding_attr = mlir::dyn_cast<StringAttr>(attr); if (!sharding_attr) return op->emitOpError( llvm::formatv(kBadStringArrayElementMsg, name, index)); if (tensorflow::DecodeShardingAttribute(sharding_attr, *sharding_ptr) .failed()) { return op->emitOpError(llvm::formatv(kBadArrayElementMsg, name, index, sharding_attr.getValue(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc
if (!op->hasAttr(TF::kTpuReplicateAttr)) { op->emitOpError("TF2XLA TPU bridge input check: " + errormsg() + "missing _tpu_replicate attr"); return false; } auto opattr = op->getAttr(TF::kTpuReplicateAttr); if (opattr != attr) { op->emitOpError("TF2XLA TPU bridge input check: " + errormsg() + "invalid _tpu_replicate attr.")
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/quantization/common/ir/QuantOps.cc
return emitOpError("layerStats must have a floating point element type"); } if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) { return emitOpError("layerStats must have shape [2]"); } } // Verify axisStats (optional) attribute. if (getAxisStats()) { if (!getAxis()) return emitOpError("axis must be specified for axisStats");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc
return emitOpError("layerStats must have a floating point element type"); } if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) { return emitOpError("layerStats must have shape [2]"); } } // Verify axisStats (optional) attribute. if (getAxisStats()) { if (!getAxis()) return emitOpError("axis must be specified for axisStats");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
return op.emitOpError("requires min to be a 0d float tensor"); auto max = GetRankedTensorTypeForOperand(op.getMax()); if (max && !IsOfRankedFloatTensorType(max, 0)) return op.emitOpError("requires max to be a 0d float tensor"); int64_t num_bits = op.getNumBits(); if (num_bits < 2 || num_bits > 16) { return op.emitOpError(
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/utils/stablehlo_custom_call.cc
} auto config = GetTfBackendConfig(op); if (config == nullptr) { op.emitOpError() << "does not have dictionary attribute '" << kTfBackendConfigAttrName << "'"; return failure(); } auto f = config.get(kCalledFuncAttrName); if (f == nullptr) { op.emitOpError() << "does not have attribute '" << kCalledFuncAttrName << "' in its dictionary attribute '"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc
if (func != nullptr && func->hasAttr("tfrt_ifrt_serving.program_id")) { return emitOpError() << "cannot be nested inside an IFRT program"; } for (mlir::Value arg : getArgs()) { if (mlir::isa<mlir::TF::ResourceType>( mlir::getElementTypeOrSelf(arg.getType()))) { return emitOpError() << "does not support passing '!tf.resource' values as arguments"; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_verifiers.cc
if (!llvm::all_of(interface.GetLayoutDependentArgs(), valid_operand)) { return op->emitOpError("layout dependent argument index is out of bound"); } auto valid_result = [&](int64_t idx) { return idx < op->getNumResults(); }; if (!llvm::all_of(interface.GetLayoutDependentResults(), valid_result)) { return op->emitOpError("layout dependent result index is out of bound"); } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 25 01:54:09 UTC 2020 - 2K bytes - Viewed (0)