- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for new_types (0.39 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
llvm::SmallVector<Type, 2> new_types(op->getResultTypes()); new_types.back() = rewriter.getType<tf_executor::ControlType>(); llvm::SmallVector<Value, 2> new_operands; FilterOutBlockArgControlDep(operands, new_operands); rewriter.replaceOpWithNewOp<tf_executor::ControlTriggerOp>( op, new_types, new_operands, op->getAttrs()); return success(); } };
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/lite/transforms/while_loop_outline.cc
SmallVector<Type, 4> new_types; new_types.reserve(operands_size); new_types.append(while_op.getResultTypes().begin(), while_op.getResultTypes().end()); for (auto extra_operand : extra_operands) new_types.push_back(extra_operand.getType()); auto new_while_op = OpBuilder(while_op).create<WhileOp>( while_op.getLoc(), new_types, operands, while_op->getAttrs());
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/insert_main_function.cc
arg_idx += func_op.getNumArguments(); llvm::ArrayRef<Type> new_types = llvm::ArrayRef( result_types.begin() + result_idx, func_op.getNumResults()); result_idx += func_op.getNumResults(); auto call_op = builder.create<TF::PartitionedCallOp>( module_op.getLoc(), new_types, new_args, SymbolRefAttr::get(context, func_op.getSymName()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
int64_t index = entry.getFirst(); Type new_type = entry.getSecond().first; int64_t updated_index = entry.getSecond().second; auto operand = caller->getOperand(index); builder.setInsertionPoint(caller); new_operands[index] = builder.create<TF::ReadVariableOp>( caller->getLoc(), ArrayRef<Type>{new_type}, ArrayRef<Value>{operand}); caller->setOperand(index, new_operands[index]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc
shape[spatial_dim_start + i]; } auto new_type = RankedTensorType::get(transposed_shape, type.getElementType()); auto permutation = DenseIntElementsAttr::get( RankedTensorType::get({type.getRank()}, rewriter.getI64Type()), permutation_array); return {new_type, permutation}; } Value InsertTranspose(Value value, int batch_dim, int feature_dim,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
// Multiply the quantization parameters by the multiplier. QuantizedType new_qtype; auto element_type = mlir::cast<TensorType>(q_op.getType()).getElementType(); if (auto uniform_type = llvm::dyn_cast<UniformQuantizedType>(element_type)) { if (multiplier_attr.isSplat()) { double new_scale = multiplier_array.front() * uniform_type.getScale(); new_qtype = UniformQuantizedType::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
MediaType newType = MediaType.createFontType("yams"); assertEquals("font", newType.type()); assertEquals("yams", newType.subtype()); } public void testCreateImageType() { MediaType newType = MediaType.createImageType("yams"); assertEquals("image", newType.type()); assertEquals("yams", newType.subtype()); } public void testCreateTextType() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Mar 05 13:16:00 UTC 2024 - 21.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/MediaTypeTest.java
MediaType newType = MediaType.createFontType("yams"); assertEquals("font", newType.type()); assertEquals("yams", newType.subtype()); } public void testCreateImageType() { MediaType newType = MediaType.createImageType("yams"); assertEquals("image", newType.type()); assertEquals("yams", newType.subtype()); } public void testCreateTextType() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Mar 05 13:16:00 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
quant::QuantParams quant_params) { Type expressed_type = value.getType(); Type new_type = quant_params.castFromExpressedType(expressed_type); // This value isn't an expressed type (float), skip. if (!new_type) return; Block &block = value.getParentRegion()->front(); Operation *op = value.getDefiningOp(); if (op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0)