- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 101 for getFlow (0.82 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
SmallVector<Value, 4> tuple_operands; for (auto idx : llvm::seq<int32_t>(0, end)) tuple_operands.push_back( builder.create<GetTupleElementOp>(value.getLoc(), value, idx) .getResult()); return CreateTuple(builder, value.getLoc(), tuple_operands); } // Replaces uses of `values` with `replacements`. If `flatten_tuple` is false,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
FilterOutBlockArgControlDep(op->getOperands().drop_front(), new_operands); auto source_op = builder.create<tf_executor::NextIterationSourceOp>( op->getLoc(), op->getOperand(0).getType()); builder.create<tf_executor::NextIterationSinkOp>( op->getLoc(), source_op.getToken(), /*input=*/op->getOperand(0), /*controlInputs=*/new_operands); op->replaceAllUsesWith(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc
std::pair<std::string, std::string> GetFuncNameAndNodeName( TF::PartitionedCallOp call_op, const FlatSymbolRefAttr &f_attr) { std::optional<QuantizationUnitLoc::QuantizationUnit> quant_unit = FindQuantizationUnitFromLoc(call_op->getLoc()); return std::make_pair(quant_unit->func_name(), quant_unit->node_name()); } std::pair<std::string, std::string> GetFuncNameAndNodeName( TF::XlaCallModuleOp call_op, const FlatSymbolRefAttr &f_attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
maxs.push_back(rmax); } quant_type = quantfork::fakeQuantAttrsToType( op.getLoc(), num_bits, *op.getAxis(), mins, maxs, narrow_range, expressed, is_signed); if (legacy_float_scale) { quant_type = DownCastScale(quant_type, mins, maxs, op->getLoc()); } } else if (auto stats = op.getLayerStats().dyn_cast<DenseFPElementsAttr>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
rewriter.setInsertionPointAfter(op); // create new F16 constant op in that location ConstantOp new_const = rewriter.create<ConstantOp>( op->getLoc(), new_result_type, new_value_attr); ConvertOp dcast = rewriter.create<ConvertOp>(op->getLoc(), old_result_type, new_const); // replace all convert ops with dq op. convert_op->replaceAllUsesWith(dcast);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
auto dynamic_key = rewriter.create<TF::_XlaCompileMlirPlaceholderProgramKeyOp>( func.getLoc(), /*program=*/result_type, llvm::ArrayRef<Value>{}); auto recv_at_host = rewriter.create<TF::_XlaRecvAtHostOp>( func.getLoc(), op.getOperandTypes(), /*dynamic_key=*/dynamic_key, op.getSendKeyAttr(), /*device_ordinal=*/rewriter.getI64IntegerAttr(0),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
auto fcast_op = rewriter.create<TF::CastOp>( preceding_sc_op->getLoc(), dq_arg_type.clone(rewriter.getF32Type()), preceding_sc_op.getResult()); // Create a new AvgPool op with float type. TF::AvgPoolOp float_avg_pool_op = rewriter.create<TF::AvgPoolOp>( avg_pool_op->getLoc(), avg_pool_op.getType().clone(rewriter.getF32Type()), /*operands=*/fcast_op.getResult(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td
def CreateTFReadVariableOpFromResourceHandle : NativeCodeCall< "$_builder.create<TF::ReadVariableOp>(" "$0.getLoc(), GetResourceSubtype($1), $1)">; def CreateTFSelectOp: NativeCodeCall< "$_builder.create<TF::SelectOp>(" "$0.getLoc(), $3.getType(), $1, $2, $3)">; def ConstAttrIfThenElse: NativeCodeCall< "($0).getValue() ? ($1) : ($2)">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 20.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
arg_types.push_back(RankedTensorType::get({}, builder.getI32Type())); arg_locs.push_back(module_op.getLoc()); for (const Value input_value : inputs) { arg_types.push_back(input_value.getType()); arg_locs.push_back(input_value.getLoc()); } // Identify result types. SmallVector<Type> result_types; for (const Value output_value : outputs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
quantize_op->setOperand(quantize_operand_num, dq_op); return false; } } rewriter.setInsertionPointAfter(op); auto q = rewriter.create<Q>(op->getLoc(), cast_type, op.getResult()); auto dq = rewriter.create<DQ>(op->getLoc(), expressed_type, q); quantize_op->setOperand(quantize_operand_num, dq.getResult()); return true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0)