- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for VariableShape (2.45 sec)
-
tensorflow/compiler/jit/shape_inference.cc
} } // Sometimes we have VariableShape nodes in while loop (after Enter nodes). // They won't be constant-folded because TensorFlow constant folding does // not handle Enter nodes (and thus does not handle any nodes after Enter // nodes). We try to replace such VariableShape nodes with Const nodes here. if (n->type_string() == "VariableShape") {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir
tf_device.return }) : () -> () func.return } // Tests that tf.VariableShape operation is decomposed. // CHECK-LABEL: @decompose_variable_shape_i32 func.func @decompose_variable_shape_i32(%input: tensor<!tf_type.resource<tensor<?x?x?xf32>>>) -> tensor<3xi32> { %0 = "tf_device.cluster"() ({ %1 = "tf.VariableShape"(%input) : (tensor<!tf_type.resource<tensor<?x?x?xf32>>>) -> tensor<3xi32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 51.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td
(TF_ExpandDimsOp $indices, (TF_ConstOp (GetScalarOfType<-1> $indices))), $updates ), (CreateConstBoolAttrFalse) )>; // Pattern to decompose tf.VariableShape into tf.ReadVariable and tf.Shape. def DecomposeVariableShape : Pat< (TF_VariableShapeOp:$src_op $resource), (TF_ShapeOp (CreateTFReadVariableOpFromResourceHandle $src_op, $resource)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 20.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
```mlir tf_device.replicate([%0, %1] as %ri: tensor<*x!tf_type.resource>) {n = 2 : i32} { %2 = "tf.ReadVariableOp"(%ri) : tensor<*x!tf_type.resource> -> tensor<*xi32> %3 = "tf.VariableShape"(%0) : (tensor<*x!tf_type.resource>) -> tensor<?xi32> tf_device.return } ``` }]; let dependentDialects = [ "mhlo::MhloDialect", "tf_device::TensorFlowDeviceDialect"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
//===----------------------------------------------------------------------===// // ShapeOp //===----------------------------------------------------------------------===// namespace { // Validates Shape/ShapeN/VariableShape operand and associated result types. LogicalResult VerifyShapeOperandAndResult(Operation *op, Type operand_type, Type result_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
let results = (outs TF_Tensor:$ref ); TF_DerivedResultTypeAttr dtype = TF_DerivedResultTypeAttr<0>; let hasCanonicalizer = 1; } def TF_VariableShapeOp : TF_Op<"VariableShape", []> { let summary = "Returns the shape of the variable pointed to by `resource`."; let description = [{ This operation returns a 1-D integer tensor representing the shape of `input`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0)