- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 270 for getFlow (0.13 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc
auto restore_op = builder.create<TF::RestoreV2Op>( session_init_func.getLoc(), /*tensors=*/tensor_types, /*prefix=*/filename_arg, tensor_names_const, shape_and_slices_const); for (auto [idx, restore_result] : llvm::enumerate(restore_op.getResults())) { builder.create<TF::AssignVariableOp>( restore_op.getLoc(), target_var_handle_ops[idx], restore_result); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 12 06:02:20 UTC 2023 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/utils.h
Block* block = builder->createBlock(body); // Block arguments are scalars of the given element type. Type type = RankedTensorType::get(/*shape=*/{}, element_type); Location loc = body->getLoc(); block->addArguments({type, type}, SmallVector<Location, 2>(2, loc)); auto reducer = builder->create<Op>(loc, block->getArgument(0), block->getArgument(1)); builder->create<ReturnOp>(loc, reducer.getResult());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
return failure(); } auto tfl_fusable_op = builder.create<TFL::CustomOp>( func->getLoc(), func.getFunctionType().getResults(), func.getArguments(), custom_op_name, CustomOption(&builder, custom_option_buffer)); builder.create<func::ReturnOp>(func->getLoc(), tfl_fusable_op.getResults()); return success(); } // Abstracts the conversion of the embedded lookup composite function.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc
transposer.TransposeValues(original_values); // Create a new constant op with the transposed values. const Location combined_loc = rewriter.getFusedLoc({const_op.getLoc(), op.getLoc()}); auto new_value_type = RankedTensorType::getChecked(combined_loc, transposer.GetTargetShape(), /*elementType=*/rewriter.getF32Type()); auto new_value_attr =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc
LogicalResult ConvertCustomCallOp::matchAndRewrite( mhlo::CustomCallOp mhlo_custom_call, OpAdaptor adaptor, ConversionPatternRewriter& rewriter) const { auto tfl_custom = rewriter.create<TFL::CustomOp>( mhlo_custom_call.getLoc(), mhlo_custom_call.getResultTypes(), mhlo_custom_call.getInputs()); tfl_custom.setCustomCodeAttr( rewriter.getStringAttr(mhlo_custom_call.getCallTargetName()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_canonicalization_helper.h
// another TF op. // TODO(jpienaar): This is a workaround until behavior is established. template <typename OpTy, typename... Args> OpTy CreateTfOp(RewriterBase &b, Operation *op, Args &&...args) { auto ret = b.create<OpTy>(op->getLoc(), std::forward<Args>(args)...); CopyDeviceAndUnderscoredAttributes(op, ret.getOperation()); return ret; } // Helper function to replace TF op with another op while copying all underscore
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 12 21:57:12 UTC 2021 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc
tensorflow::Algorithm tensorflow_rng = tensorflow::ToTensorflowAlgorithm(xla_rng); OpBuilder opbuilder(get_alg_op); auto tf_const = opbuilder.create<TF::ConstOp>( get_alg_op->getLoc(), opbuilder.getI32IntegerAttr((int)tensorflow_rng)); get_alg_op->replaceAllUsesWith(tf_const); get_alg_op->erase(); return success(); } void TFXLADeviceSpecificTransforms::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 05:56:39 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
SmallVector<Type> arg_types; SmallVector<Location> arg_locs; for (const Value arg : xla_call_module_op.getArgs()) { arg_types.push_back(arg.getType()); arg_locs.push_back(arg.getLoc()); } SmallVector<Type> output_types; for (const Value output : xla_call_module_op.getOutput()) { output_types.push_back(output.getType()); } entry_func_op.setFunctionType(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojo.java
* method directly whenever you need the logger, it is fast enough and needs no caching. * * @see org.apache.maven.plugin.Mojo#getLog() * @deprecated Use SLF4J directly */ @Deprecated @Override public Log getLog() { if (log == null) { log = new SystemStreamLog(); } return log; } @Override
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
for (Value result : subgraph.FuncOutputs()) { Value cloned_output = values_in_scope.lookup(result); return_operands.push_back(cloned_output); } function_builder.create<mlir::func::ReturnOp>(new_func.getLoc(), return_operands); ops_added.func_op = new_func; module.push_back(new_func); return new_func; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0)