- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for read_variable (0.31 sec)
-
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) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
TFL_TensorOf<[F32, F64, I1, UI8, I8, QI8, QUI8, I32, I64, QI16, Complex<F<32>>, Complex<F<64>>]>:$value ); let results = (outs); } def TFL_ReadVariableOp : TFL_Op<"read_variable", []> { let summary = "Reads variable value."; let description = [{ Read variable data identified by 'resource_id'. }]; let arguments = (ins TFL_ResourceTensor:$resource_id
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
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) -
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) -
tensorflow/compiler/mlir/tensorflow/tests/tpu_colocate_composite_resource_ops.mlir
// RUN: tf-opt %s -tf-tpu-colocate-composite-resource-ops | FileCheck %s // Tests ReadVariable op using composite device resource is wrapped inside // tf_device.Cluster. // CHECK-LABEL: func @testReadVariableOpColocated // CHECK-SAME: (%[[ARG0:.*]]: tensor<*x!tf_type.resource<tensor<4xf32>>>) func.func @testReadVariableOpColocated(%arg0: tensor<*x!tf_type.resource<tensor<4xf32>>>) { // CHECK: tf_device.replicate
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:59:10 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/common/tfl_pass_config.h
bool shape_inference = true; // Whether to do TFLite runtime verification. bool runtime_verification = true; // Whether to enable TFLite variables or not, this will allow // mutable variables and produce ReadVariable/AssignVariable ops in TFLite. bool enable_tflite_variables = false; // Whether to disable the variable freezing pass or not. // By default we freeze all variables and disallow mutable variables. When
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 19:05:30 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc
} else { // Typically a tf.VarHandle op. return v.getDefiningOp()->emitOpError("Non constant predecessor"); } } // For the "resource" attribute in a ReadVariable or AssignVariable op, // determine the symbol reference to the (new) ml_program::GlobalOp. SymbolRefAttr lookupGlobalTensor(func::FuncOp func, Value resource, SymbolTable &syms,
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_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) -
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) -
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)