Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for read_variable (0.21 sec)

  1. tensorflow/compiler/mlir/lite/tests/legalize-tf-variables.mlir

      // CHECK: %[[VAR_VAL:.*]] = "tfl.read_variable"(%[[RESOURCE]]) : (tensor<!tf_type.resource<tensor<1x10xf32>>>) -> tensor<1x10xf32>
      // CHECK: %[[ADD:.*]] = tfl.add %[[VAR_VAL]], %arg0 {fused_activation_function = "NONE"} : tensor<1x10xf32>
      // CHECK: "tfl.assign_variable"(%[[RESOURCE]], %[[ADD]]) : (tensor<!tf_type.resource<tensor<1x10xf32>>>, tensor<1x10xf32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_save_op.mlir

    // CHECK-SAME: {{.*shared_name = "var_1".*}}
    
    // ReadVariableOps are inserted for each VarHandleOp to read the tensor values.
    // CHECK-DAG: %[[READ_VARIABLE_0:.*]] = "tf.ReadVariableOp"(%[[VAR_HANDLE_0]]) : (tensor<!tf_type.resource<tensor<2xf32>>>) -> tensor<2xf32>
    // CHECK-DAG: %[[READ_VARIABLE_1:.*]] = "tf.ReadVariableOp"(%[[VAR_HANDLE_1]]) : (tensor<!tf_type.resource<tensor<3xf32>>>) -> tensor<3xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. 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]])
    // CHECK-DAG: %[[CST_0:.*]], {{.*}} = tf_executor.island wraps "tf.Const"() <{{{.*value = dense<"var_0"> : tensor<1x!tf_type\.string>.*}}}>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/ref-type-attr.mlir

    // RUN: tf-mlir-translate -mlir-to-graphdef %s -o - | FileCheck %s
    
    // Verify that attribute T is not set as ref type.
    // CHECK-LABEL: name: "Ref_Variable"
    // CHECK-LABEL: name: "foo"
    // CHECK:      attr {
    // CHECK-NEXT:   key: "T"
    // CHECK-NEXT:   value {
    // CHECK-NEXT:     type: DT_INT32{{$}}
    // CHECK-NEXT:   }
    // CHECK-NEXT: }
    
    func.func @main() {
      tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 775 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/readonly_references_to_resources.mlir

      %val1 = "tf.Identity"(%val0) {_class = ["loc:@v"]} : (tensor<96x!tf_type.f32ref>) -> tensor<96xf32>
      func.return
    }
    
    // -----
    
    // Test case: Two ReadVariable ops.
    
    func.func @f() {
      // CHECK: "tf.VarHandleOp"
    
      // During lowering to resource variables, this pass will preserve the
      // locations of the ReadVariableOps as Identity ops to keep the original graph
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

    // resource variables.
    //
    // 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).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.td

      let summary = "Freeze tf_saved_model.global_tensor's in func bodies.";
    
      let description = [{
        This pass will replace a func's bound inputs which are bound to
        tf.ReadVariable ops global tensors with tf.Const ops inside the func's body.
        If this pass runs successfully, the resultant IR will be guaranteed to:
    
        1. Not contain any tf_saved_model.global_tensor ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 09 19:11:34 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/ops/variable_ops.h

    // Executes a ReadVariableOp using `ctx`. This reads the underlying variable
    // value of `variable_handle` and copies the value to `output`. `dtype` must be
    // the dtype of the variable associated with `variable_handle`.
    Status ReadVariable(ImmediateExecutionContext* ctx,
                        ImmediateExecutionTensorHandle* variable_handle,
                        DataType dtype, ImmediateTensorHandlePtr* output);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/ref-while-loop.mlir

        %1:2 = tf_executor.island wraps "tf.VariableV2"() {device = "", dtype = "tfdtype$DT_INT32", value = dense<0> : tensor<i32>, shape = #tf_type.shape<0>, container = "", shared_name = ""} : () -> tensor<!tf_type.int32ref> loc("Ref_Variable")
        %2:2 = tf_executor.Enter %1#0 frame "while/while_context" parallel_iterations 10 : (tensor<!tf_type.int32ref>) -> (tensor<*x!tf_type.int32ref>, !tf_executor.control) {device = "", T = "tfdtype$DT_INT32"} loc("while/Enter")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc

      TF_RETURN_IF_ERROR(assign_op->AddInput(value));
    
      int num_retvals = 0;
      TF_RETURN_IF_ERROR(assign_op->Execute({}, &num_retvals));
      return Status();
    }
    
    Status ReadVariable(ImmediateExecutionContext* ctx,
                        ImmediateExecutionTensorHandle* variable_handle,
                        DataType dtype, ImmediateTensorHandlePtr* output) {
      ImmediateOpPtr read_op(ctx->CreateOperation());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 11:28:19 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top