- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for new_output_types (0.24 sec)
-
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
func::FuncOp func, llvm::SmallVectorImpl<Type>& new_output_types, OpBuilder builder) { Block& block = func.front(); auto* terminator = block.getTerminator(); builder.setInsertionPoint(terminator); if (mlir::isa<FloatType>(output_type)) { return success(); } int num_return_operands = terminator->getNumOperands(); new_output_types.reserve(num_return_operands);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
// Output types. Skip the original outputs for merged assigns. llvm::SmallVector<Type, 8> new_output_types; int old_output_index = 0; for (const auto& type : execute_launch.getResultTypes()) { if (var_access_info.old_to_new_output_mapping[old_output_index] >= 0) { new_output_types.push_back(type); } ++old_output_index; } // The attributes for merged variable reads and updates.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
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/lite/transforms/optimize_op_order.cc
passthrough_op->replaceAllUsesWith(dequantize_op); // Set the input type of the passthrough op and pull it up. Type new_output_type; if (mlir::isa<quant::QuantizedType>(input_element_type)) { new_output_type = QuantizedType::getQuantizedElementType( dequantize_op.getInput().getType()) .castFromExpressedType(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/experimental/tac/transforms/device_transform_patterns.cc
} for (auto size : output_type.getShape()) { new_output_shape.push_back(size); } RankedTensorType new_output_type = RankedTensorType::get(new_output_shape, output_type.getElementType()); auto new_slice = rewriter.create<TFL::SliceOp>( slice_op.getLoc(), new_output_type, reshape_op, new_begin, new_size); // Append a reshape at the bottom.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
if (target_opset_ == OpSet::UNIFORM_QUANTIZED) { ShapedType new_output_type = ConvertIntToQint( mlir::cast<ShapedType>(output_type), rewriter.getContext()); if (!new_output_type) { q_op->emitError( "Failed to convert the type to the corresponding qtype."); return failure(); } output_types = {new_output_type}; } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
} // Check that total number of outputs from regions match the output types of // the parallel_execute op. const int num_output_types = op.getOperation()->getNumResults(); if (num_output_types != output_index) { return op.emitOpError() << "number of output types (" << num_output_types << ") " << "must match the total number of outputs from all " << "regions (" << output_index << ")."; }
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/lite/flatbuffer_import.cc
} auto new_output_type = new_qtype.castFromExpressedType( mlir::quant::UniformQuantizedType::castToExpressedType( value.getType())); builder.setInsertionPointAfter(cst.getOperation()); auto new_op = builder.create<tfl::QConstOp>( cst.getLoc(), new_output_type, mlir::TypeAttr::get(new_output_type), cst.getValueAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
feature_group_count; auto new_output_type = RankedTensorType::get(new_output_shape, output_type.getElementType()); // Create a Smaller Convolution (Ensure compatibility) auto conv_result = rewriter.create<mhlo::ConvolutionOp>( conv_op.getLoc(), new_output_type, sliced_input, sliced_kernel, conv_op.getWindowStridesAttr(), conv_op.getPaddingAttr(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0)