- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for __op_key (0.18 sec)
-
tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir
// CHECK-SAME: op_key = 1 // CHECK-NOT: __op_key %a = "tf.AddV2"(%input0, %const) {__op_key = 1: i32}: (tensor<i32>, tensor<i32>) -> tensor<i32> // CHECK: [[b:%.*]] = tf_mlrt.executeop([[a]]) // CHECK-SAME: Abs // CHECK-SAME: op_key = 2 // CHECK-NOT: __op_key %b = "tf.Abs"(%a) {__op_key = 2: i32 }: (tensor<i32>) -> tensor<i32> // CHECK: tf_mlrt.promise [[promise_b]], [[b]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 24.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/tpu_conversions.mlir
%0 = "tf.ReadVariableOp"(%arg1) {__op_key = 0: i32, device = "/CPU:0"} : (tensor<*x!tf_type.resource>) -> tensor<*xi32> %1 = "tf.Shape"(%arg0) {__op_key = 1: i32, device = "/CPU:0"} : (tensor<*xi32>) -> tensor<?xi64> %2 = "tf.Shape"(%0) {__op_key = 2: i32, device = "/CPU:0"} : (tensor<*xi32>) -> tensor<?xi64>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 04 21:25:31 UTC 2023 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/assign_op_key.mlir
// CHECK-LABEL: func @main // CHECK: tf.AddV2 // CHECK-SAME: {__op_key = 0 : i32} // CHECK: tf.AddV2 // CHECK-SAME: {__op_key = 1 : i32} // CHECK: tf.AddV2 // CHECK-SAME: {__op_key = 2 : i32} // CHECK: tf.AddV2 // CHECK-SAME: {__op_key = 3 : i32} // CHECK: tf.Sub // CHECK-SAME: {__op_key = 4 : i32} // CHECK: tf.Sub // CHECK-SAME: {__op_key = 5 : i32} // CHECK: tf.Sub // CHECK-SAME: {__op_key = 6 : i32}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 22:07:30 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/inline.mlir
func.func @while_body_if(%cond: tensor<i1>, %x: tensor<i1>, %y: tensor<i1>, %z: tensor<i32>) -> (tensor<i1>, tensor<i1>, tensor<i1>, tensor<i32>) { %0 = "tf.Const"() {__op_key = 0: i32, device = "/device:CPU:0", value = dense<2> : tensor<i32>} : () -> tensor<i32> %1 = "tf.Add"(%z, %0) {__op_key = 1: i32, device = "/device:CPU:0"} : (tensor<i32>, tensor<i32>) -> tensor<i32> func.return %cond, %x, %y, %1 : tensor<i1>, tensor<i1>, tensor<i1>, tensor<i32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 01:01:31 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/constants.h
#define TENSORFLOW_COMPILER_MLIR_TFRT_CONSTANTS_H_ namespace tensorflow { namespace tfrt_compiler { // Use __ prefix to indicate this is internal attribute. inline constexpr char kOpKeyAttrName[] = "__op_key"; } // namespace tfrt_compiler } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 09 04:34:14 UTC 2023 - 1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc
EXPECT_EQ(expected_op_cost_map.size(), 1); unsigned int seed = 23579; for (auto& [op_key, cost] : expected_op_cost_map) { cost = rand_r(&seed) % 1000; } tensorflow::tfrt_stub::CostRecorder cost_recorder; for (const auto& [op_key, cost] : expected_op_cost_map) { cost_recorder.RecordCost(op_key, cost); } // Update the TFRT MLIR with the cost recorder.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 21 22:52:12 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td
def CreateOp: FallbackAsync_Op<"createop", [CoreRT_TypedAttributeTrait]> { let summary = "The Fallback CreateOp"; let description = [{ The CreateOp creates the tensorflow::OpKernel in the fallback context. op_key: The unique key to identify this op. num_args: The number of inputs. device: The tensorflow device. eg. "/CPU:0" op_attrs: The tensorflow attributes excluding the func attrs. op_func_attrs: The func attrs.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 15.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc
mlir::OpAsmParser::Delimiter::Paren)) return mlir::failure(); if (options.has_key && (parser.parseKeyword("key") || parser.parseLParen() || parser.parseAttribute(op_key, "op_key", result.attributes) || parser.parseRParen())) return mlir::failure(); if (options.has_cost && (parser.parseKeyword("cost") || parser.parseLParen() ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td
let summary = "The Fallback CreateOp"; let description = [{ The CreateOp creates the tensorflow::OpKernel in the fallback context. }]; let arguments = (ins StrAttr:$node_def, I32Attr:$op_key ); let assemblyFormat = "attr-dict"; } def ConstOp: TensorflowMlrt_Op<"constop", []> { let summary = "The tf_mlrt ConstOp"; let description = [{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 13.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/fuse_mlrt_ops.mlir
// CHECK-NEXT: [[t3:%.*]] = tf_mlrt.await [[f2]] // CHECK-NEXT: return [[t2]], [[t3]] %t0 = tf_mlrt.await %f0 %t1 = tf_mlrt.await %f1 %t2 = tf_mlrt.executeop(%t0, %t1) {node_def = "AddV2", op_key = 0 : i32} : (!tf_mlrt.tensor, !tf_mlrt.tensor) -> (!tf_mlrt.tensor) %t3 = tf_mlrt.await %f2 func.return %t2, %t3 : !tf_mlrt.tensor, !tf_mlrt.tensor } // ----- // CHECK-LABEL: @main
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 07 23:57:30 UTC 2023 - 3K bytes - Viewed (0)