- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for do (0.02 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
: ConversionTarget(ctx), converter_(converter) { markUnknownOpDynamicallyLegal([this](Operation* op) { // The FuncOp type can contain types that the op's operand and result // types do not contain. if (auto func = dyn_cast<func::FuncOp>(op)) { if (!converter_.isSignatureLegal(func.getFunctionType())) return false; } else if (auto bitcast_convert_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc
// *different* variables // - they make the blanket assumption that any functions called cause or depend // on side effects (i.e., access resource variables.) // // By moving the logic to compile time, we will be able to do a finer-grained // data flow analysis in the future, which will enable more optimizations. // This could happen in two steps: // (1) build multiple dependency chains (one per variable), still treating
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc
if (!(indices_size == shared_name_size && shared_name_size == container_size)) { return get_resource_op->emitError() << "length of attribute arrays do not match. indices = " << indices_size << ", shared_name = " << shared_name_size << ", container = " << container_size; } return success(); }
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/lite/transforms/optimize_op_order.cc
get_num_elements(input_type) <= get_num_elements(output_type)) { return failure(); } Type input_element_type = getElementTypeOrSelf(dequantize_op.getInput()); // Most passthrough ops do not support F16. if (input_element_type.isF16()) { return failure(); } // Set the output type of the dequantize op and push it down. dequantize_op.getOutput().setType(output_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc
} void AddStablehloOptimizationPasses(OpPassManager& pm) { // The current plan of record is to avoid doing optimization passes // on StableHLO, treating StableHLO purely as an input format, and do all // optimizations via MHLO passes that can be shared with the OpenXLA compiler. // Therefore, this function inserts a StableHLO <=> MHLO roundtrip to make // this happen. // StableHLO -> MHLO legalization.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 04:34:23 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc
// requantizing if a quantized output is required. // // The motivation behind these changes is for Dialects that assume only float // or quantized computation, and do not support a mixture of these types on // dense operations. Decomposition allows TFLite to be compiled to these // dialects, such as TOSA. #include <utility>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc
"/tensorflow/core/tf2xla/" "mlir_second_phase_non_static_op_count", "Counts which ops do not have static results", "op_name"); auto* mlir_non_static_op_skip_count = tensorflow::monitoring::Counter<1>::New( "/tensorflow/core/tf2xla/" "mlir_second_phase_non_static_op_skip_count", "Counts skipped ops which do not have static results", "op_name"); static const char* kMustBeConstantError =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc
} } return global_tensor_uses; } // Removes `is_mutable` attribute from tf_saved_model.global_tensor ops where we // can prove it is safe to do so. void MarkGlobalTensorsImmutable( ModuleOp module, const GlobalTensorUsesMap& global_tensor_uses_map, const TF::ResourceAnalyzer& resource_analyzer) { for (const auto& kv : global_tensor_uses_map) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc
} return scale_spec; } bool IsOpQuantizableStableHlo(Operation* op) { if (isa<func::ConstantOp, mlir::stablehlo::ConstantOp>(op)) { // Constant ops do not have QuantizableResult attribute but can be // quantized. return true; } else if (op->hasTrait<OpTrait::IsTerminator>() || isa<quantfork::QuantizeCastOp, quantfork::DequantizeCastOp>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
llvm::ArrayRef<TensorType> underlying_type = mlir::cast<TF::ResourceType>(arg_type.getElementType()).getSubtypes(); // If the arg type already matches the global_tensor type, we don't need // to do anything. if (!underlying_type.empty() && underlying_type[0] == global_tensor.getType()) { assert(underlying_type.size() == 1); continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0)