Home
last modified time | relevance | path

Searched refs:mlir_module (Results 1 – 25 of 29) sorted by relevance

12

/external/tensorflow/tensorflow/python/compiler/mlir/
Dmlir_test.py35 mlir_module = mlir.convert_graph_def('')
37 self.assertIn('func @main', mlir_module)
56 mlir_module = mlir.convert_function(concrete_function, show_debug_info=True)
57 self.assertRegex(mlir_module, r'func @.*sqr.*\(')
58 self.assertRegex(mlir_module, r'callsite\(".*mlir_test.py":')
73 mlir_module = mlir.convert_function(concrete_function)
74 self.assertRegex(mlir_module, r'func @.*caller.*\(')
75 self.assertRegex(mlir_module, r'func private @.*callee.*\(')
85 mlir_module = mlir.convert_function(concrete_function, pass_pipeline='')
86 self.assertRegex(mlir_module, r'tf\.PrintV2')
[all …]
/external/tensorflow/tensorflow/compiler/mlir/xla/experimental/conv_emitter/
Dconv_emitter_test.cc52 mlir::OwningModuleRef mlir_module( in CompileHloConvAndGetMlir() local
58 mlir_module->push_back(function); in CompileHloConvAndGetMlir()
59 (void)mlir_module->verify(); in CompileHloConvAndGetMlir()
69 mlir::PassManager pm(mlir_module->getContext()); in CompileHloConvAndGetMlir()
73 CHECK(mlir::succeeded(pm.run(*mlir_module))); in CompileHloConvAndGetMlir()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dserialize_mlir_module_utils.cc38 mlir::OwningModuleRef* mlir_module) { in DeserializeMlirModule() argument
41 TF_RET_CHECK(mlir_module) << "unexpected null MLIR module pointer"; in DeserializeMlirModule()
48 *mlir_module = mlir::parseSourceString(serialized_mlir_module, mlir_context); in DeserializeMlirModule()
49 if (!*mlir_module) in DeserializeMlirModule()
Dserialize_mlir_module_utils.h35 mlir::OwningModuleRef* mlir_module);
Dcompile_mlir_util.cc500 mlir::OwningModuleRef mlir_module; in CompileSerializedMlirToXlaHlo() local
503 DeserializeMlirModule(mlir_module_string, &mlir_context, &mlir_module)); in CompileSerializedMlirToXlaHlo()
509 mlir_module.get(), tensor_or_resource_shapes, device_type, use_tuple_args, in CompileSerializedMlirToXlaHlo()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/
Dtpu_compile_op_replication_pass.mlir5 … = "/job:worker/replica:0/task:1/device:CPU:0", metadata = "metadata", mlir_module = "mlir_module"}
7 … = "/job:worker/replica:0/task:0/device:CPU:0", metadata = "metadata", mlir_module = "mlir_module"}
8 …:worker/replica:0/task:0/device:CPU:0", metadata = "metadata", mlir_module = "mlir_module"} : () -…
Dtpu-dynamic-layout-pass.mlir14 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
52 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
88 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
119 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
151 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
184 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
215 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
249 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
294 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
332 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
[all …]
Dmaterialize_passthrough_op.mlir13 …T", "tfdtype$DT_FLOAT"], Toutputs = ["tfdtype$DT_FLOAT"], device = "", mlir_module = "\0Afunc @mai…
Dtpu-merge-variables-with-execute.mlir23 // CHECK-SAME: mlir_module
28mlir_module = "module attributes {tf.versions = {producer = 888 : i32}} {\0A func @main(%arg0: te…
68 // CHECK-SAME: mlir_module
72mlir_module = "module attributes {tf.versions = {producer = 888 : i32}} {\0A func @main(%arg0: te…
131 // CHECK-SAME: mlir_module
135mlir_module = "module attributes {tf.versions = {producer = 888 : i32}} {\0A func @main(%arg0: te…
Dtpu-variable-runtime-reformatting.mlir46 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
129 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
193 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
266 mlir_module = "..."} : () -> (tensor<!tf.string>, tensor<2x!tf.string>)
Dtpu_rewrite.mlir741 // CHECK-SAME: mlir_module
788 // CHECK-SAME: mlir_module
859 // CHECK-SAME: mlir_module
908 // CHECK-SAME: mlir_module
953 // CHECK-SAME: mlir_module
1006 // CHECK-SAME: mlir_module
1053 // CHECK-SAME: mlir_module
1067 // CHECK-SAME: mlir_module
1109 // CHECK-SAME: mlir_module
1123 // CHECK-SAME: mlir_module
[all …]
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile_op_impl.cc60 std::string mlir_module; in CreateMlirImpl() local
62 ctx, &metadata, /*function_name=*/nullptr, &mlir_module)); in CreateMlirImpl()
65 mlir_module, metadata, metadata.num_cores_per_replica(), in CreateMlirImpl()
Dtpu_compile_op_impl.h38 TpuCompileOpKernelImpl(const std::string& mlir_module, in TpuCompileOpKernelImpl() argument
42 : TpuCompileOpKernelCommon(mlir_module, metadata, num_computations, in TpuCompileOpKernelImpl()
Dtpu_compile_op_support.h50 const std::string& mlir_module; member
150 std::string* mlir_module);
Dtpu_compile_op_common.h68 TpuCompileOpKernelCommon(const std::string& mlir_module, in TpuCompileOpKernelCommon() argument
74 mlir_module_(mlir_module), in TpuCompileOpKernelCommon()
Dtpu_compile_op_support.cc348 *compilation_request.mutable_mlir_module() = mlir_computation.mlir_module; in CreateTpuCompilationRequest()
390 std::string* mlir_module) { in CompileOpMetadataFromContext() argument
406 if (mlir_module != nullptr) { in CompileOpMetadataFromContext()
407 TF_RETURN_IF_ERROR(ctx->GetAttr("mlir_module", mlir_module)); in CompileOpMetadataFromContext()
Dtpu_compile.proto51 string mlir_module = 8; field
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dmlir_emitter.cc114 mlir::OwningModuleRef mlir_module = mlir::ModuleOp::create(loc); in EmitMlirFuncAndCall() local
115 mlir_module->push_back(function); in EmitMlirFuncAndCall()
121 MakeLLVMModule(std::move(mlir_module), &b->getContext()); in EmitMlirFuncAndCall()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MlirPassthroughOp.pbtxt21 mlir_module = '''python
30 return mlir_passthrough_op([x, y], mlir_module, Toutputs=[tf.float32])
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/
Dmlir_passthrough_op.pbtxt4 # CHECK: mlir_module = "\0Afunc @main(%arg0 : tensor<10xf32>, %arg1 : tensor<10xf32>) -> tensor<10x…
81 key: "mlir_module"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DMlirPassthroughOp.pbtxt12 name: "mlir_module"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DMlirPassthroughOp.pbtxt12 name: "mlir_module"
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/
Dtype_attr.mlir29 …sor<16xf32>], Tinputs = [tensor<16xf32>], Toutputs = [tensor<16xf32>], mlir_module = ""} : (tensor…
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dmaterialize_mlir_passthrough_op.cc47 std::string module_string(passthrough_op.mlir_module()); in runOnFunction()
Dtpu_merge_variables_with_execute.cc448 compile.mlir_module().str(), compile.getContext(), &module_ref); in UpdateSerializedModule()

12