- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for MlirLocalVarOp (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 49K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ops/mlir_local_var_op.cc
==============================================================================*/ #include "tensorflow/core/framework/common_shape_fns.h" #include "tensorflow/core/framework/op.h" namespace tensorflow { REGISTER_OP("MlirLocalVarOp") .Output("resource: resource") .SetShapeFn(shape_inference::UnknownShape) .Doc(R"(Creates a handle to an in-scope variable. Used by internal passes for temporary representation of local state, which will
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 08 23:15:13 UTC 2020 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/stack_ops_decomposition.mlir
// CHECK-NEXT: %[[BROADCAST:.*]] = "tf.BroadcastTo"(%[[CAST_ZERO]], %[[CONST10]]) : (tensor<f32>, tensor<1xi32>) -> tensor<10xf32> // CHECK-NEXT: %[[BUFFER:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf_type.resource<tensor<10xf32>>> // CHECK-NEXT: %[[SIZE:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf_type.resource<tensor<1xi32>>> // CHECK-NEXT: %[[ZERO:.*]] = "tf.Const"() <{value = dense<0> : tensor<1xi32>}> : () -> tensor<1xi32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 25.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
var_handle_op->erase(); } else { std::get<TF::MlirLocalVarOp>(op).erase(); } } std::optional<LocalVarOp> IsLocalVarOp(Operation &op) { if (TF::MlirLocalVarOp mlir_local_var_op = llvm::dyn_cast<TF::MlirLocalVarOp>(&op)) { return std::make_optional(LocalVarOp(mlir_local_var_op)); } if (TF::VarHandleOp var_handle_op = llvm::dyn_cast<TF::VarHandleOp>(&op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/promote_resources_to_args.mlir
func.return } // ----- // Tests removal of dead local variables. // CHECK-LABEL: func @main func.func @main(%arg0: tensor<2xf32>) { // CHECK-NOT: tf.MlirLocalVarOp // CHECK-NOT: tf.AssignVariableOp %0 = "tf.MlirLocalVarOp"() : () -> tensor<!tf_type.resource<tensor<2xf32>>> "tf.AssignVariableOp"(%0, %arg0) : (tensor<!tf_type.resource<tensor<2xf32>>>, tensor<2xf32>) -> () func.return } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 18.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
ArrayRef<TensorType>{mlir::cast<TensorType>(buffer.getType())}, stack.getContext())); auto local_var = builder.create<TF::MlirLocalVarOp>( stack.getLoc(), ArrayRef<Type>{var_type}, ArrayRef<Value>{}); auto local_size_var = builder.create<TF::MlirLocalVarOp>( stack.getLoc(), ArrayRef<Type>{size_var_type}, ArrayRef<Value>{}); // Zero-initialize the local vars. cutil::WriteLocalVariable(local_size_var,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
auto var_type = RankedTensorType::get( {}, TF::ResourceType::get( ArrayRef<TensorType>{buffer.getType().cast<TensorType>()}, ta.getContext())); auto local_var = builder.create<TF::MlirLocalVarOp>( ta.getLoc(), ArrayRef<Type>{var_type}, ArrayRef<Value>{}); cutil::WriteLocalVariable(local_var, buffer, builder, ta.getLoc()); ta.getHandle().replaceAllUsesWith(local_var);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
); TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>; TF_DerivedOperandTypeAttr Tpaddings = TF_DerivedOperandTypeAttr<1>; } def TF_MlirLocalVarOp : TF_Op<"MlirLocalVarOp", []> { let summary = "Creates a handle to an in-scope variable."; let description = [{ Used by internal passes for temporary representation of local state, which will be eventually removed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0)