Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for shape_of (0.16 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

          shape_before.take_back(shape_c.size()) != shape_c) {
        return failure();
      }
      ArrayRef<int64_t> shape_y2 =
          shape_before.drop_front(shape_b.size()).drop_back(shape_c.size());
    
      // No need to check %dot; dot_general verifier ensures correct shapes.
      // Extract Z from %dot.
      ArrayRef<int64_t> shape_z =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

      strides = [1, op.get_attr('stride_w'), op.get_attr('stride_h'), 1]
      padding = op.get_attr('padding')
      shape_0, shape_1 = tf.shape_n([op.inputs[0], op.inputs[1]])
      return [
          tf.compat.v1.nn.conv2d_backprop_input(
              shape_0,
              op.inputs[1],
              grad,
              strides=strides,
              padding=padding,
              dilations=dilations,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

         (HasNoUseOf:$root__3), (HasNoUseOf:$root__4),
         (HasNoUseOf:$root__5)]>;
    
    class HasEqualElementSize<list<int> shape_1, list<int> shape_2> : Constraint<
      CPred<"quant::HasEqualElementSize($0, $1,"
      "llvm::ArrayRef<int>({" # !interleave(shape_1, ", ") # "}),"
      "llvm::ArrayRef<int>({" # !interleave(shape_2, ", ") # "}))">,
      "Checks if the given dimensions contain the same number of elements.">;
    
    def ReshapableTo1DTensor : Constraint<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        }
    
        rewriter.replaceOp(op, results);
        return success();
      }
    };
    
    // Canonicalize ShapeNOp to ShapeOp if there is only one operand.
    class ShapeNToShape : public OpRewritePattern<ShapeNOp> {
      using OpRewritePattern<ShapeNOp>::OpRewritePattern;
      LogicalResult matchAndRewrite(ShapeNOp op,
                                    PatternRewriter &rewriter) const override {
        if (op.getNumOperands() != 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

        OpBuilder builder(shape_op);
        auto new_shape_op = builder.create<TF::VariableShapeOp>(
            shape_op.getLoc(), shape_op.getType(),
            replicate_op.GetReplicaOperandForBlockArgument(block_arg,
                                                           /*replica=*/0));
        shape_op.replaceAllUsesWith(new_shape_op.getOperation());
        shape_op.erase();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device_ops.h

    #include "tensorflow/core/kernels/function_ops.h"
    #include "tensorflow/core/kernels/identity_op.h"
    #include "tensorflow/core/kernels/resource_variable_ops.h"
    #include "tensorflow/core/kernels/shape_ops.h"
    #include "tensorflow/core/kernels/variable_ops.h"
    
    namespace tensorflow {
    
    // Dummy OpKernel, used for kernels assigned to an XLA device that should be
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 23 19:28:25 UTC 2021
    - 17.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc

              TF::IdentityOp,
              TF::MaxPoolOp,
              TF::PadV2Op,
              TF::RankOp,
              TF::ReshapeOp,
              TF::SelectOp,
              TF::SelectV2Op,
              TF::ShapeNOp,
              TF::ShapeOp,
              TF::SizeOp,
              TF::SqueezeOp,
              TF::TransposeOp
              // go/keep-sorted end
              // clang-format on
              >(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/tensor_spec.cc

    TensorSpec::TensorSpec()
        : shape_(std::initializer_list<int64_t>()), dtype_(DT_FLOAT) {}
    
    TensorSpec::TensorSpec(PartialTensorShape shape, DataType dtype)
        : shape_(std::move(shape)), dtype_(dtype) {}
    
    TensorSpec::TensorSpec(const TensorSpecProto& proto)
        : shape_(proto.shape()), dtype_(proto.dtype()) {}
    
    const PartialTensorShape& TensorSpec::shape() const { return shape_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        mlir::DenseIntElementsAttr shape_attr;
        if (matchPattern(op_state.operands[1], m_Constant(&shape_attr))) {
          auto shape_ty =
              op_state.operands[1].getType().dyn_cast<RankedTensorType>();
          if (shape_ty != nullptr && shape_ty.hasRank() && shape_ty.getRank() > 1) {
            llvm::SmallVector<mlir::Attribute, 4> shape;
            int32_t dim_size = 0;
            for (const auto& dim :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/aot/compile.cc

      absl::StatusOr<std::unique_ptr<xla::ProgramShape>> pshape_or =
          client->GetComputationShape(computation);
      if (!pshape_or.ok()) {
        return errors::Unknown("Couldn't get XLA program shape: ",
                               pshape_or.status().message());
      }
      compile_result->program_shape = pshape_or.value()->ToProto();
      xla::ProgramShapeProto* pshape = &compile_result->program_shape;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 08:28:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top