- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ReadLocalVariable (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
push.replaceAllUsesWith(push.getElem()); OpBuilder builder(push); // Read the current buffer and size. auto stack_val = cutil::ReadLocalVariable(push.getHandle(), builder, push.getLoc()); auto index = cutil::ReadLocalVariable(it->getSecond(), builder, push.getLoc()); stack_val = cutil::SetElement(index, stack_val, push.getElem(), builder, push.getLoc());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
auto local_var = read.getHandle(); if (stats.count(local_var) == 0) { return read.emitOpError("unknown tensor array"); } OpBuilder builder(read); auto buffer = cutil::ReadLocalVariable(local_var, builder, read.getLoc()); auto index_reshape = cutil::ReshapeScalarToSizeType(builder, read.getIndex(), read.getLoc()); auto elem = cutil::GetElement(index_reshape, buffer, builder, read.getLoc());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.h
std::optional<RankedTensorType> GetElementTypeFromAccess( Value collection, ModuleOp module, llvm::function_ref<std::optional<Type>(Operation*)> infer_from_op); // Creates a ReadVariableOp on a local variable. Value ReadLocalVariable(Value local_var, OpBuilder builder, Location loc); // Creates an AssignVariableOp on a local variable. TF::AssignVariableOp WriteLocalVariable(Value local_var, Value value,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
if (elem_type && elem_type.hasStaticShape()) return elem_type; } } return std::nullopt; } // Creates a ReadVariableOp on a local variable. Value ReadLocalVariable(Value local_var, OpBuilder builder, Location loc) { return builder .create<TF::ReadVariableOp>( loc, ArrayRef<Type>{mlir::cast<TF::ResourceType>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0)