- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for var_handle (0.19 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_save_op.mlir
// CHECK-DAG: %[[CST:.*]] = "tf.Const" // CHECK-DAG: %[[VAR_HANDLE:.*]] = "tf.VarHandleOp" // CHECK: "tf.AssignVariableOp"(%[[VAR_HANDLE]], %[[CST]]) // Test that a new save function that wraps the SaveV2 op is created. // CHECK: func.func private @tf_quant__save(%[[ARG:.*]]: tensor<!tf_type.string>) // CHECK: %[[VAR_HANDLE:.*]] = "tf.VarHandleOp"() // CHECK-SAME: {{.*shared_name = "var_0".*}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/tests/merge_save_function_ops_to_main.mlir
// CHECK: tf_executor.graph // CHECK: %[[VAR_HANDLE:.*]], {{.*}} = tf_executor.island wraps "tf.VarHandleOp"() <{{{.*shared_name = "var_0".*}}}> // CHECK: %[[READ_VARIABLE:.*]], {{.*}} = tf_executor.island wraps "tf.ReadVariableOp"(%[[VAR_HANDLE]])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td
Empty strings indicate that they are non-partitioned tensors.}]>:$shape_and_slices, // VarHandles for restored tensors. Variadic<TF_Tensor>:$var_handles, // Data types for restored tensor. TypeArrayAttr: $restored_dtypes, // whether trucate is used when casting from the restored_dytpe to the type specified in VarHandle DenseBoolArrayAttr: $truncate_in_cast ); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 20:44:15 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/pin-ops-with-side-effects.mlir
func.func @resource_output_gets_control_node() -> tensor<!tf_type.resource<tensor<1xf32>>> { %var = "tfl.var_handle"() {container = "", shared_name = "states"} : () -> tensor<!tf_type.resource<tensor<1xf32>>> func.return %var : tensor<!tf_type.resource<tensor<1xf32>>> } // CHECK-NEXT: %[[VAR:.*]], %[[CONTROL:.*]] = tfl.control_node controls "tfl.var_handle" // CHECK-NEXT: return %[[VAR]] // CHECK-LABEL: @tfl_call_once_gets_control_node
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 17 10:45:19 UTC 2022 - 5.6K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc
strlen(ResourceHandle::ANONYMOUS_NAME))); AbstractTensorHandle* var_handle = nullptr; int num_retvals = 1; TF_RETURN_IF_ERROR(varhandle_op->Execute( absl::MakeSpan(&var_handle, num_retvals), &num_retvals)); AbstractTensorHandlePtr owned_var_handle(var_handle); if (!tensorflow::isa<ImmediateExecutionTensorHandle>( owned_var_handle.get())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/legalize-tf-variables.mlir
func.return %2, %3 : tensor<1x10xf32>, tensor<1x10xi64> } // CHECK: %[[RESOURCE:.*]] = "tfl.var_handle"() <{container = "c", shared_name = "a"}> : () -> tensor<!tf_type.resource<tensor<1x10xf32>>> // CHECK: %[[RESOURCE_1:.*]] = "tfl.var_handle"() <{container = "c", shared_name = "b"}> : () -> tensor<!tf_type.resource<tensor<1x10xi64>>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
// // It converts (VariableV2 -> Identity) to (VarHandle -> ReadVariable). // // For the background, this pass is a part of hoisting VariableV2 ops by // re-using the pipeline for hoisting (VarHandle -> ReadVariable) cases, which // can be done by the following passes: // - Capturing resource values into global tensors (importing saved model). // - Promoting VarHandle ops to function input/outputs. // - Freezing global tensor pass.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/aot/aot_only_var_handle_op.cc
#include "tensorflow/compiler/tf2xla/xla_op_kernel.h" #include "tensorflow/compiler/tf2xla/xla_op_registry.h" #include "tensorflow/core/framework/shape_inference.h" namespace tensorflow { namespace { // Implementation of varhandle that binds a VarHandleOp to an XlaResource of the // same name. It is not safe to use this op in a JIT context. class XlaAotOnlyVarHandleOp : public XlaOpKernel { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 09:57:04 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.td
let summary = "Lower tf.ReadVariable and tf.AssignVariable"; let description = [{ This pass will lower AssignVariableOp and ReadVariableOp to their ml_program equivalents, for those resources which come from a VarHandle op, but also for those which come from a "bound input" parameter. For the latter, said parameter will not be removed, unlike LowerGlobalsToMlProgramPass. So this will lower e.g.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 09 19:11:34 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc
// simple like "cast" and keep tracing. return traceUpwardsToArgument(v.getDefiningOp()->getOperand(0), seen, out); } else { // Typically a tf.VarHandle op. return v.getDefiningOp()->emitOpError("Non constant predecessor"); } } // For the "resource" attribute in a ReadVariable or AssignVariable op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0)