- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 118 for GetOperation (0.14 sec)
-
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
// Keras LSTM have 5 outputs. // We should make sure only the first or the second output are // consumed. if (failed(CheckOutputConsumer(op.getOperation(), 5, {0, 1}))) return WalkResult::interrupt(); } return WalkResult::advance(); }); if (result.wasInterrupted()) return failure(); }
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/tensorflow/transforms/replicate_to_island.cc
if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } // Find islands with a single `tf_device.replicate` and create individual // islands per replica of the replicate. llvm::SmallVector<tf_executor::IslandOp, 4> replicate_op_islands; getOperation().walk([&](tf_executor::GraphOp graph_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
auto new_constant_op = builder.clone(*constant_op.getOperation()); constant_op.getResult().getUses().begin()->assign( dyn_cast<mlir::stablehlo::ConstantOp>(new_constant_op)); } } } void ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass:: runOnOperation() { ModuleOp module_op = getOperation(); func::FuncOp main_func = FindMainFuncOp(module_op);
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/tensorflow/transforms/tpu_validate_inputs.cc
ModuleOp module = getOperation(); bool success = true; int num_metadata = 0; TF::TPUReplicateMetadataOp metadata; MetadataMap metadata_map; module.walk([&](TF::TPUReplicateMetadataOp meta) { ++num_metadata; metadata = meta; metadata_map[meta->getAttrOfType<StringAttr>(TF::kTpuReplicateAttr).str()] = meta; }); getOperation().walk([&](mlir::Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 06:51:01 UTC 2024 - 21.5K bytes - Viewed (0) -
plugin/pkg/admission/certificates/ctbattest/admission_test.go
return t.obj } func (t *testAttributes) GetOldObject() runtime.Object { return t.oldObj } func (t *testAttributes) GetName() string { return t.name } func (t *testAttributes) GetOperation() admission.Operation { return t.operation } func (t *testAttributes) GetUserInfo() user.Info { return &user.DefaultInfo{Name: "ignored"}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
} }; // TODO: b/264218457 - Refactors the current file to parse preset quantization // options and allow modular control of quantization specs. void QuantizeWeightPass::runOnOperation() { func::FuncOp func = getOperation(); MLIRContext* ctx = func.getContext(); RewritePatternSet patterns(ctx); patterns.add<QuantizeWeight>(ctx, quantization_component_spec_); FrozenRewritePatternSet frozen_patterns(std::move(patterns));
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/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
<< key; break; } } } return attrs; } }; void TflToStablehloPass::runOnOperation() { func::FuncOp fn = getOperation(); OpBuilder builder(fn.getContext()); fn.walk([&](TFL::CustomOp custom_op) { builder.setInsertionPoint(custom_op); const uint8_t* option_buf = reinterpret_cast<const uint8_t*>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
int activation_number_of_bits = 8) { if (llvm::isa<TFL::LSTMOp>(op.getOperation())) { lstm_variant->op_code = tflite::BuiltinOperator_LSTM; } else if (llvm::isa<TFL::UnidirectionalSequenceLSTMOp>(op.getOperation())) { lstm_variant->op_code = tflite::BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_LSTM; } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
rewriter, input_val, result_type, unique_func_name, func_input_arg); // Fills the body. Operation* last_op_in_func = quantization_operations_func(rewriter, func_op.getOperation(), func_input_arg, result_type, quant_type); // Connect the function in the existing graph. auto end_call_op = FinalizeFunctionRegister(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
} public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LiftTfliteFlexOpsPass) void runOnOperation() override { MLIRContext* context = &getContext(); func::FuncOp func = getOperation(); mlir::RewritePatternSet patterns(context); AddLiftTfliteFlexOpsPatterns(context, patterns); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0)