- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 56 for varhandle_op (0.33 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
let constructor = "TF::CreateHoistLoopInvariantPass()"; } def LocalizeVarHandlesPass : Pass<"tf-localize-var-handles", "ModuleOp"> { let summary = "Creates VarHandleOps next to the operations that use them."; let description = [{ Creates VarHandleOps right next to the operations that use them, one per operation. This is useful for transformations that only end up with a few small
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc
if (auto global = tf_saved_model::LookupBoundInputOfType< tf_saved_model::GlobalTensorOp>(func, i, syms)) { OpBuilder builder(func.getBody()); auto dummy = builder.create<TF::VarHandleOp>( global.getLoc(), func.getArgument(i).getType(), "dummy", "dummy"); func.getArgument(i).replaceAllUsesWith(dummy.getResult()); argsToErase.set(i); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
TFE_TensorHandle* TestVariable(TFE_Context* ctx, float value, const tensorflow::string& device_name) { TF_Status* status = TF_NewStatus(); // Create the variable handle. TFE_Op* op = TFE_NewOp(ctx, "VarHandleOp", status); if (TF_GetCode(status) != TF_OK) return nullptr; TFE_OpSetAttrType(op, "dtype", TF_FLOAT); TFE_OpSetAttrShape(op, "shape", {}, 0, status); TFE_OpSetAttrString(op, "container", "localhost", 0);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/passes.h
// aliasing output arguments. std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteResourcesToArgsPass( llvm::ArrayRef<std::string> functions = {}); // Creates a pass that promotes tf.VarHandleOp to resource arguments for all // functions. std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteVarHandlesToArgsPass(); // Creates a pass that converts readonly reference variables to the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 31.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/convert_control_to_data_outputs.mlir
// Tests loop with two resource types, one of them being unique per iteration. // // Similar to above test but with one additional resource that is not unique per // iteration (created by `tf.VarHandleOp`). func.func @mixed_unique_resource_chain(%arg0: tensor<i32>, %arg1: tensor<f32>) { tf_executor.graph {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 18:35:00 UTC 2024 - 68.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
if (auto pop_back = dyn_cast<TF::TensorListPopBackOp>(op)) { return InferShapeForTensorListPopBackOp(pop_back); } if (auto var_handle_op = dyn_cast<VarHandleOp>(op)) { return InferShapeForVarHandleOp(var_handle_op); } if (auto xla_reduce_window_op = dyn_cast<XlaReduceWindowOp>(op)) { return InferShapeForXlaReduceWindowOp(xla_reduce_window_op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/mark_ops_for_outside_compilation.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 16:22:32 UTC 2024 - 29.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir
func.func @infer_var_handle_op_from_assigns() -> tensor<1xi8> { %cst = arith.constant dense<1> : tensor<1xi8> %0 = "tf.VarHandleOp"() {container = "", shared_name = "bar"} : () -> tensor<!tf_type.resource<tensor<*xi8>>> // CHECK: "tf.VarHandleOp"() <{container = "", shared_name = "bar"}> : () -> tensor<!tf_type.resource<tensor<1xi8>>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 17:24:10 UTC 2024 - 167.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir
func.return %arg : tensor<!tf_type.resource<tensor<i32>>> } // CHECK-LABEL: func @side_effect_while_test func.func @side_effect_while_test() -> (tensor<i32>) { %0 = "tf.VarHandleOp"() {device = "/device:CPU:0", container = "c", shared_name = "v"} : () -> tensor<!tf_type.resource<tensor<i32>>> // CHECK: [[while_res:%.]]:2 = tfrt.while {{%.*}} @"side_effect_while_body_add2/tfrt_body_1"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 00:40:32 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
return VerifyUnsortedSegmentReduction(*this); } //===----------------------------------------------------------------------===// // VarHandleOp //===----------------------------------------------------------------------===// LogicalResult VarHandleOp::verify() { // VarHandleOp requires the resource handle supply a single subtype from // which to derive the dtype and shape attributes.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)