Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for read_variable (0.24 sec)

  1. tensorflow/compiler/mlir/lite/tests/quantize-variables.mlir

    // CHECK-LABEL: QuantizeReadVariable
    func.func @QuantizeReadVariable() -> (tensor<1x2x1x3x!quant.uniform<i8:f32, 1.0>>) {
      %1 = "tfl.var_handle"() : () -> tensor<!tf_type.resource>
      %2 = "tfl.read_variable"(%1) : (tensor<!tf_type.resource>) -> tensor<1x2x1x3xf32>
      %3 = "tfl.quantize"(%2) {qtype = tensor<1x2x1x3x!quant.uniform<i8:f32, 1.0>>, volatile} : (tensor<1x2x1x3xf32>) -> tensor<1x2x1x3x!quant.uniform<i8:f32, 1.0>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/quantize.mlir

      %0 = "tfl.var_handle"() {container = "", shared_name = "states"} : () -> tensor<!tf_type.resource<tensor<1x2x3xf32>>>
      %1 = "tfl.read_variable"(%0) : (tensor<!tf_type.resource<tensor<1x2x3xf32>>>) -> tensor<1x2x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:10:13 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/schema/schema_v3b.fbs

      REAL=134,
      COMPLEX_ABS=135,
      HASHTABLE = 136,
      HASHTABLE_FIND = 137,
      HASHTABLE_IMPORT = 138,
      HASHTABLE_SIZE = 139,
      REDUCE_ALL = 140,
      CONV_3D_TRANSPOSE = 141,
      VAR_HANDLE = 142,
      READ_VARIABLE = 143,
      ASSIGN_VARIABLE = 144,
    }
    // LINT.ThenChange(nnapi_linter/linter.proto)
    
    // Options for the builtin operators.
    union BuiltinOptions {
      Conv2DOptions,
      DepthwiseConv2DOptions,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 14:28:27 UTC 2024
    - 30K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/schema/schema.fbs

      REAL=134,
      COMPLEX_ABS=135,
      HASHTABLE = 136,
      HASHTABLE_FIND = 137,
      HASHTABLE_IMPORT = 138,
      HASHTABLE_SIZE = 139,
      REDUCE_ALL = 140,
      CONV_3D_TRANSPOSE = 141,
      VAR_HANDLE = 142,
      READ_VARIABLE = 143,
      ASSIGN_VARIABLE = 144,
      BROADCAST_ARGS = 145,
      RANDOM_STANDARD_NORMAL = 146,
      BUCKETIZE = 147,
      RANDOM_UNIFORM = 148,
      MULTINOMIAL = 149,
      GELU = 150,
      DYNAMIC_UPDATE_SLICE = 151,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

                             "Non scalar type">;
    
    def HasSingleElement: Constraint<CPred<"($0.size() == 1)">>;
    
    def EmptyList: NativeCodeCall<"llvm::SmallVector<mlir::Value>{}">;
    
    // Creates a tf.ReadVariable op that reads a resource `$2` that has the same
    // element type as `$1`. The op created will use location of `$0`.
    def CreateTFReadVariableOp : NativeCodeCall<
        "$_builder.create<TF::ReadVariableOp>("
        "  $0.getLoc(),"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td

      [(CopyAttrs $src, $dest1), (CopyAttrs $src, $dest2)]>;
    
    
    //===----------------------------------------------------------------------===//
    // Cast op followed by a ReadVariable op can be folded into the ReadVariable
    //===----------------------------------------------------------------------===//
    
    def ReadVariableOfCast : Pat<
      (TF_ReadVariableOp:$src (TF_CastOp:$output $x, BoolAttr:$Truncate)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 17K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_cluster_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteExecutor(executor);
      TF_DeleteStatus(status);
    }
    
    // Read the value of variable `var` and save it into `out_value`.
    void ReadVariable(TFE_Context* ctx, TFE_TensorHandle* var,
                      TFE_TensorHandle** out_value) {
      TF_Status* status = TF_NewStatus();
      TFE_Op* op = TFE_NewOp(ctx, "ReadVariableOp", status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 10:03:59 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    }
    
    // Returns a TPUPartitionedInput op connected to a `tf_device.cluster_func`
    // operand value if it has an XLA sharding. If value is a resource type then
    // TPUPartitionedInput op will be connected to a ReadVariable op that feeds into
    // a `tf_device.cluster_func`.
    mlir::Operation* GetXlaShardingFromOperand(Value value) {
      Value value_to_visit = value;
      if (auto read_var = value_to_visit.getDefiningOp<mlir::TF::ReadVariableOp>())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

          }
        }
      }
      for (auto cluster_operand : cluster.getOperands()) {
        Operation* def = cluster_operand.getDefiningOp();
        // This pass assumes that a TPUPartitionedInputV2 is preceeded by
        // ReadVariable ops, and not vice versa. An earlier pass,
        // TPUResourceReadsWritesPartitioning, should have ensured this
        // precondition.
        if (!def) continue;
        for (auto operand : def->getOperands()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

            break;
          }
        }
        TF::TPUReplicatedInputOp input =
            llvm::cast<TF::TPUReplicatedInputOp>(input_ptr);
    
        // Validate that all users of the TPUReplicatedInput are ReadVariable
        // or AssignVariable ops and check if any are outside the forwards pass.
        bool duplicate_needed = false;
        for (Operation* next_user : input.getOutput().getUsers()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top