/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/ |
D | tf_saved_model_ops_invalid.mlir | 3 module attributes {tf_saved_model.semantics} { 5 …// expected-error@+1 {{unknown tf_saved_model dialect arg attribute 'tf_saved_model.not_a_real_arg… 6 func private @f(%arg0: tensor<f32> {tf_saved_model.not_a_real_arg_attr = 1 : i32}) { 14 module attributes {tf_saved_model.semantics} { 16 // expected-error@+1 {{'tf_saved_model.bound_input' attribute should be a FlatSymbolRefAttr}} 18 %arg0: tensor<f32> {tf_saved_model.bound_input = 1 : i32} 19 ) attributes { tf_saved_model.exported_names = ["foo.some_func"] } { 27 module attributes {tf_saved_model.semantics} { 29 …// expected-error@+1 {{'tf_saved_model.bound_input' attribute must reference a valid symbol, got i… 31 %arg0: tensor<f32> {tf_saved_model.bound_input = @doesnt_exist} [all …]
|
D | tf_saved_model_optimize_global_tensors.mlir | 7 module attributes {tf_saved_model.semantics} { 11 // CHECK: "tf_saved_model.global_tensor"() { 14 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "v", type = tensor<f32>, value = dense<4… 16 …f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}) -> (tensor<f32> {tf_… 17 attributes {tf_saved_model.exported_names = ["f"]} { 26 module attributes {tf_saved_model.semantics} { 30 // CHECK: "tf_saved_model.global_tensor"() { 33 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "v", type = tensor<f32>, value = dense<4… 35 func @f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}) 36 attributes {tf_saved_model.exported_names = ["f"]} { [all …]
|
D | tf_saved_model_ops.mlir | 3 module attributes {tf_saved_model.semantics} { 5 // CHECK: tf_saved_model.session_initializer 6 "tf_saved_model.session_initializer"() { 10 // CHECK: tf_saved_model.asset 11 "tf_saved_model.asset"() { 17 // CHECK: tf_saved_model.global_tensor 18 "tf_saved_model.global_tensor"() { 19 tf_saved_model.exported_names = ["some_const"], 26 // CHECK: tf_saved_model.global_tensor 27 "tf_saved_model.global_tensor"() { [all …]
|
D | tf_saved_model_freeze_global_tensors.mlir | 3 module attributes {tf_saved_model.semantics} { 7 // CHECK-NOT: tf_saved_model.global_tensor 8 …"tf_saved_model.global_tensor"() {sym_name = "v", type = tensor<f32>, value = dense<1.0> : tensor<… 11 func @f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}) 12 attributes {tf_saved_model.exported_names = ["f"]} { 22 module attributes {tf_saved_model.semantics} { 27 // CHECK: func @f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.index_path = [0]}) 28 func @f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.index_path = [0]}) 29 attributes {tf_saved_model.exported_names = ["f"]} { 38 module attributes {tf_saved_model.semantics} { [all …]
|
D | tf_saved_model_optimize_global_tensors_interprocedural.mlir | 6 // CHECK-LABEL: module attributes {tf_saved_model.semantics} 7 module attributes {tf_saved_model.semantics} { 12 // CHECK: "tf_saved_model.global_tensor"() { 15 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "v", type = tensor<f32>, value = dense<4… 17 …f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}) -> (tensor<f32> {tf_… 18 attributes {tf_saved_model.exported_names = ["f"]} { 36 // CHECK-LABEL: module attributes {tf_saved_model.semantics} 37 module attributes {tf_saved_model.semantics} { 42 // CHECK: "tf_saved_model.global_tensor"() { 44 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "v", type = tensor<f32>, value = dense<4… [all …]
|
D | tf_saved_model_lift_variables.mlir | 3 module attributes {tf_saved_model.semantics, tf_saved_model.under_construction} { 7 …50xf32>>> {tf.resource_name = "dense/bias"}) -> (tensor<100x50xf32> {tf_saved_model.index_path = [… 8 …on = {control_outputs = "", inputs = "", outputs = "dense_2/Add:0"}, tf_saved_model.exported_names… 16 // CHECK: "tf_saved_model.global_tensor"() 18 // CHECK: "tf_saved_model.global_tensor"() 21 …// CHECK: %arg0: tensor<!tf.resource<tensor<100x50xf32>>> {tf_saved_model.bound_input = @"dense… 22 …// CHECK: %arg1: tensor<!tf.resource<tensor<50xf32>>> {tf_saved_model.bound_input = @"dense/bia… 27 module attributes {tf_saved_model.semantics, tf_saved_model.under_construction} { 31 …50xf32>>> {tf.resource_name = "dense/bias"}) -> (tensor<100x50xf32> {tf_saved_model.index_path = [… 32 …on = {control_outputs = "", inputs = "", outputs = "dense_2/Add:0"}, tf_saved_model.exported_names… [all …]
|
D | tf_saved_model_remove_vars_in_session_initializer.mlir | 3 module attributes {tf_saved_model.semantics} { 9 module attributes {tf_saved_model.semantics} { 11 …// expected-error@+1 {{'tf_saved_model.session_initializer' op the initializer function does not e… 12 "tf_saved_model.session_initializer"() { initializers = [@init] } : () -> () 17 module attributes {tf_saved_model.semantics} { 19 "tf_saved_model.session_initializer"() { initializers = [@init] } : () -> () 21 …func @init() attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"]}… 30 module attributes {tf_saved_model.semantics} { 35 "tf_saved_model.session_initializer"() { initializers = [@init] } : () -> () 36 …func @init() attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"]}… [all …]
|
D | tf_saved_model_deduplicate_bound_input_bindings.mlir | 3 module attributes {tf_saved_model.semantics, tf_saved_model.under_construction} { 5 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "v", type = tensor<f32>, value = dense<4… 6 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "w", type = tensor<f32>, value = dense<4… 7 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "x", type = tensor<f32>, value = dense<4… 9 // CHECK: %arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v} 10 // CHECK: %arg1: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @w} 11 // CHECK: %arg2: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @x} 15 %arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}, 16 %arg1: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @w}, 17 %arg2: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}, [all …]
|
D | tf_saved_model_lift_variables_invalid_session.mlir | 5 module attributes {tf_saved_model.semantics, tf_saved_model.under_construction} { 7 …50xf32>>> {tf.resource_name = "dense/bias"}) -> (tensor<100x50xf32> {tf_saved_model.index_path = [… 8 …on = {control_outputs = "", inputs = "", outputs = "dense_2/Add:0"}, tf_saved_model.exported_names… 21 module attributes {tf_saved_model.semantics, tf_saved_model.under_construction} { 24 func @serving_default() -> (tensor<100x50xf32> {tf_saved_model.index_path = ["dense_2"]}) 25 …on = {control_outputs = "", inputs = "", outputs = "dense_2/Add:0"}, tf_saved_model.exported_names…
|
D | tf_saved_model_freeze_global_tensors_mutable_tensors.mlir | 3 module attributes {tf_saved_model.semantics} { 7 …"tf_saved_model.global_tensor"() { is_mutable, sym_name = "v", type = tensor<f32>, value = dense<1… 9 func @f(%arg0: tensor<!tf.resource<tensor<f32>>> {tf_saved_model.bound_input = @v}) 10 attributes {tf_saved_model.exported_names = ["f"]} {
|
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/ |
D | remove_unused_func_args_tensors.mlir | 4 module attributes {tf_saved_model.semantics} { 5 …"tf_saved_model.global_tensor"() {is_mutable, sym_name = "Variable", type = tensor<1x10xf32>, valu… 6 …lt(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]}, %arg1: tensor<!tf.resource<tensor<… 7 …(tensor<1x10xf32> {tf_saved_model.index_path = ["output_0"]}) attributes {tf_saved_model.exported_… 12 …r<1x10xf32> {tf_saved_model.index_path = ["x"]}) -> (tensor<1x10xf32> {tf_saved_model.index_path =… 18 module attributes {tf_saved_model.semantics} { 19 …"tf_saved_model.global_tensor"() {is_mutable, sym_name = "Variable", type = tensor<1x10xf32>, valu… 20 …"tf_saved_model.global_tensor"() {is_mutable, sym_name = "UnusedVariable", type = tensor<1x10xf32>… 21 …lt(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]}, %arg1: tensor<!tf.resource<tensor<… 22 %arg2: tensor<!tf.resource<tensor<1x10xf32>>> {tf_saved_model.bound_input = @UnusedVariable}) -> [all …]
|
D | initialize_variables.mlir | 4 module attributes {tf_saved_model.semantics} { 5 …"tf_saved_model.global_tensor"() {is_mutable, sym_name = "Variable", type = tensor<1x10xf32>, valu… 6 …lt(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]}, %arg1: tensor<!tf.resource<tensor<… 7 …tf_saved_model.index_path = ["output_0"]}) attributes {tf.entry_function = {control_outputs = "", … 15 …// CHECK: func @SessionInitializerFunction() attributes {tf_saved_model.exported_names = ["Session… 21 …// CHECK: "tf_saved_model.session_initializer"() {initializers = [@SessionInitializerFunction]} : … 22 // CHECK: func @serving_default(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]} 29 module attributes {tf_saved_model.semantics} { 31 attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"]} { 43 "tf_saved_model.session_initializer"() {initializers = [@init_all_tables]} : () -> () [all …]
|
D | legalize-tf-variables.mlir | 4 module attributes {tf_saved_model.semantics} { 5 …"tf_saved_model.global_tensor"() {is_mutable, sym_name = "Variable", type = tensor<1x10xf32>, valu… 6 …lt(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]}, %arg1: tensor<!tf.resource<tensor<… 7 …tf_saved_model.index_path = ["output_0"]}) attributes {tf.entry_function = {control_outputs = "", … 15 // CHECK: func @serving_default(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]} 27 module attributes {tf_saved_model.semantics} { 29 attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"]} { 37 "tf_saved_model.session_initializer"() {initializers = [@init_all_tables]} : () -> () 38 // CHECK: "tf_saved_model.session_initializer"() {initializers = [@init_all_tables]} : () -> () 40 …"tf_saved_model.global_tensor"() {is_mutable, sym_name = "Variable", type = tensor<1x10xf32>, valu… [all …]
|
D | insert_call_once_op.mlir | 5 module attributes {tf_saved_model.semantics} { 6 "tf_saved_model.session_initializer"() {initializers = [@init_all_tables]} : () -> () 9 attributes {tf_saved_model.exported_names = ["__tf_saved_model_session_initializer"]} { 18 … @serving_default(%arg0: tensor<i64> {tf_saved_model.index_path = ["x"]}) -> (tensor<*x!tf.string>… 19 …uts = "input:0", outputs = "hash_table_Lookup/LookupTableFindV2:0"}, tf_saved_model.exported_names… 33 module attributes {tf_saved_model.semantics} { 34 …func @no_call_once(%arg0: tensor<i64> {tf_saved_model.index_path = ["x"]}) -> (tensor<i64> {tf_sav… 35 … = {control_outputs = "", inputs = "input:0", outputs = "output:0"}, tf_saved_model.exported_names…
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | initialize_variables.cc | 51 tf_saved_model::GlobalTensorOp GetGlobalTensor(const SymbolTable& symbol_table, in GetGlobalTensor() 61 return symbol_table.lookup<tf_saved_model::GlobalTensorOp>(sym.getValue()); in GetGlobalTensor() 87 tf_saved_model::GlobalTensorOp GetGlobalTensorOp(mlir::Operation* op, in GetGlobalTensorOp() 119 std::set<tf_saved_model::GlobalTensorOp> tensors_to_initialize; in InitializeVariables() 149 builder.create<tf_saved_model::SessionInitializerOp>( in CreateSessionInitFunc() 164 for (auto global_tensor : module.getOps<tf_saved_model::GlobalTensorOp>()) { in runOnOperation()
|
D | remove_unused_func_args_tensors.cc | 47 std::set<mlir::tf_saved_model::GlobalTensorOp> global_tensors_to_remove; in runOnOperation() 54 symbol_table.lookup<tf_saved_model::GlobalTensorOp>( in runOnOperation()
|
D | insert_call_once_op.cc | 36 tf_saved_model::SessionInitializerOp session_init_op = in runOnOperation() 37 tf_saved_model::GetSessionInitializerOp(module); in runOnOperation()
|
D | legalize_variables.cc | 57 tf_saved_model::GlobalTensorOp GetGlobalTensor(const SymbolTable& symbol_table, in GetGlobalTensor() 67 return symbol_table.lookup<tf_saved_model::GlobalTensorOp>(sym.getValue()); in GetGlobalTensor() 139 for (auto global_tensor : module.getOps<tf_saved_model::GlobalTensorOp>()) { in runOnOperation()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/ |
D | tf_saved_model_ops.td | 29 let name = "tf_saved_model"; 39 `tf_saved_model.semantics`. 42 `tf_saved_model.exported_names = <array of strings>` which indicates which 58 `tf_saved_model.index_path` and `tf_saved_model.bound_input` in order to 70 `tf_saved_model.index_path = [...some list of strings and integers...]}` 78 `tf_saved_model.bound_input = @some_symbol_name` references a 79 `tf_saved_model.global_tensor` that is bound to that function argument 81 TODO(silvasean): Consider replacing tf_saved_model.bound_input arg attrs 85 let cppNamespace = "::mlir::tf_saved_model"; 105 `tf_saved_model.bound_input` argument attr. [all …]
|
D | tf_saved_model.h | 24 namespace tf_saved_model { 50 namespace tf_saved_model {
|
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/ |
D | signature_def.mlir | 108 … = {bad_consumers = [], min_consumer = 12 : i32, producer = 554 : i32}, tf_saved_model.semantics} { 109 …tf_saved_model.index_path = ["input2"]}, %arg1: tensor<?x384xf32> {tf_saved_model.index_path = ["i…
|
/external/tensorflow/tensorflow/compiler/mlir/lite/ |
D | tf_tfl_passes.cc | 94 mlir::tf_saved_model::CreateLiftVariablesPass(session.getValue())); in AddTFToTFLConversionPasses() 140 mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass()); in AddTFToTFLConversionPasses() 174 pass_manager->addPass(mlir::tf_saved_model::CreateFreezeGlobalTensorsPass( in AddTFToTFLConversionPasses() 284 pm.addPass(mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass()); in CreateTFLStandardPipeline() 300 pm.addPass(mlir::tf_saved_model::CreateFreezeGlobalTensorsPass()); in CreateTFLStandardPipeline() 314 pm.addNestedPass<mlir::tf_saved_model::SessionInitializerOp>( in CreateTFLStandardPipeline()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | lift_variables_pass.cc | 37 if (failed(tf_saved_model::LiftVariables(module, session_))) in runOnOperation() 47 namespace tf_saved_model { namespace
|
D | deduplicate_bound_input_bindings.cc | 26 namespace tf_saved_model { namespace 37 if (!mlir::tf_saved_model::IsExported(func)) return; in runOnFunction()
|
D | lift_variables_test_pass.cc | 125 if (failed(tf_saved_model::LiftVariables(module, session_))) in runOnOperation() 141 if (failed(tf_saved_model::LiftVariables(module, /*session=*/nullptr))) in runOnOperation() 148 namespace tf_saved_model { namespace
|