Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for ShapeN (0.1 sec)

  1. tensorflow/compiler/jit/mark_for_compilation_pass.cc

            //
            //   shape = RandomUniformInt();
            //   reshape = Reshape(input, shape)
            //
            // Both RandomUniformInt and Reshape are compilable by XLA so, absent
            // any other reason, we will try to put both shape and reshape in the
            // same cluster.  However, since XLA only supports statically shaped
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      // Fuse select(broadcast_to(input, shape), x, y) -> selectV2(input, x, y)
      // Also, fuse selectv2(broadcast_to(input, shape), x, y) -> selectV2(input, x, y)
      // It is safe to perform this transform here because-
      // the shapes of `pre_broadcast` and `dim` must be broadcast
      // compatible for the `broadcast_to` op to be valid.
      // And considering, `shape(post_broadcast)` == `shape(%input1)`,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        // attribute is not empty, those shapes are used in its shape function
        // as result shapes instead of propagating operand shapes as result shapes.
        // This allows for different result shapes from operand shapes. While these
        // shapes are imported and set as a part of the result type, there is no
        // indicator differentiating between having no output shapes compared to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      }
      llvm::SmallVector<int64_t, 4> shape;
      shape.push_back(split_size);
      for (int i = 1; i < in_shape.size(); ++i) {
        shape.push_back(in_shape[i]);
      }
      shard_type = RankedTensorType::Builder(ranked_type).setShape(shape);
      return mlir::success();
    }
    
    // Output `sharding`, which is the sharding of `val`. `context_op` is used for
    // error reporting, in case of errors.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

                  fused_batch_norm_op, [&](::mlir::Diagnostic &diag) {
                    diag << "Shapes of mean and variance should be 1D and "
                            "compatible with x";
                  });
            }
          }
    
          // Check if output shape and input shape are compatible.
          auto x_type = (*x.begin()).getType();
          auto y_type = (*root.getODSResults(0).begin()).getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

                tensor_spec.TensorSpec(
                    shape=input_shape, dtype=dtypes.float32, name='input_tensor'
                )
            ),
        )
        return model
    
      # Prepares sample einsum input data shapes.
      # This function returns:
      # 1. Shape for input 1
      # 2. Shape for input 2
      # 3. Shape for bias
      # 4. Signature for input 1 (Could contain None dimension)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

      return
    }
    ```
    ### `-tf-tpu-annotate-dynamic-shape-inputs`
    
    _Annotate the inputs returned by TPUCopyWithDynamicShapeOp with dynamic shape_
    
    This pass looks for the usage of the result of TPUCopyWithDynamicShapeOp
    and sets the shape of these inputs to be dynamic shaped. This will ensure
    that the generated HLO program is correctly reflecting the dynamic shape.
    ### `-tf-tpu-cleanup-cluster-attributes`
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

      auto ranked_ty = mlir::dyn_cast<RankedTensorType>(ty);
    
      // Unranked type.
      if (!ranked_ty) return ty;
    
      auto shape = llvm::to_vector<4>(ranked_ty.getShape());
      if (axis < 0) axis += ranked_ty.getRank() + 1;
    
      shape.insert(shape.begin() + axis, 1);
      return tensorflow::GetTypeFromTFTensorShape(shape,
                                                  ranked_ty.getElementType());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  9. tensorflow/c/c_api.h

    // setting a shape of [-1, 2] with an existing shape [2, -1] would set
    // a final shape of [2, 2] based on shape merging semantics.
    //
    // Returns an error into `status` if:
    //   * `output` is not in `graph`.
    //   * An invalid shape is being set (e.g., the shape being set
    //     is incompatible with the existing shape).
    TF_CAPI_EXPORT extern void TF_GraphSetTensorShape(TF_Graph* graph,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK-DAG: %[[SHAPE1:.*]] = "tf.Shape"(%[[INPUT]]) : (tensor<?x?xf32>) -> tensor<2xi32>
      // CHECK-DAG: %[[N:.*]] = "tf.StridedSlice"(%[[SHAPE1]], %[[ONE_1D]], %[[TWO_1D]], %[[ONE_1D]]) <{begin_mask = 0 : i64, ellipsis_mask = 0 : i64, end_mask = 0 : i64, new_axis_mask = 0 : i64, shrink_axis_mask = 1 : i64}> : (tensor<2xi32>, tensor<1xi32>, tensor<1xi32>, tensor<1xi32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
Back to top