Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for shape_of (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

      NativeCodeCall<"GetF32Scalar(&$_builder, " # value # ")">;
    
    def TrueBoolAttr : AttrConstraint<CPred<"$_self.cast<::mlir::BoolAttr>().getValue()">>;
    
    def CreateTFShapeOp : NativeCodeCall<
        "$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">;
    
    def IsI32 : NativeCodeCall<
        "$_builder.getBoolAttr(getElementTypeOrSelf($0.getType()).isInteger(32))">;
    
    def CreateTFCastOpF32 : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        return rewriter.create<TF::ConstOp>(loc, static_shape_attr).getOutput();
      }
    
      // If the shape is not static, create a new ShapeOp.
      BoolAttr false_attr = rewriter.getBoolAttr(false);
      return rewriter
          .create<TF::ShapeOp>(loc, input,
                               /*use_32bit=*/false_attr)
          .getOutput();
    }
    
    mlir::TFL::MirrorPaddingType GetTFLMirrorPaddingFromString(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

        TypeID::get<TF::ReshapeOp>(),
        TypeID::get<TF::ReverseV2Op>(),
        TypeID::get<TF::RFFTOp>(),
        TypeID::get<TF::RsqrtGradOp>(),
        TypeID::get<TF::ScatterNdOp>(),
        TypeID::get<TF::ShapeOp>(),
        TypeID::get<TF::SinhOp>(),
        TypeID::get<TF::SizeOp>(),
        TypeID::get<TF::SliceOp>(),
        TypeID::get<TF::SoftmaxCrossEntropyWithLogitsOp>(),
        TypeID::get<TF::SoftplusOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

              loc, GetScalarOfType(
                       builder->getIntegerType(use_32bit.getValue() ? 32 : 64),
                       ranked_ty.getDimSize(idx)));
        }
      }
    
      auto shape = builder->create<TF::ShapeOp>(loc, input, use_32bit);
      return builder->create<TF::StridedSliceOp>(
          loc, mlir::RankedTensorType::get({}, getElementTypeOrSelf(shape)), shape,
          /*begin=*/
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      std::string serialized_func_module;
      if (HasDynamicOutputs(external_outputs)) {
        FuncOp shape_op = BuildFunction(clustered_ops, external_operands,
                                        external_outputs, &builder);
        EncapsulateFuncAndSerialize(shape_op, &serialized_func_module);
      }
    
      builder.setInsertionPoint(&op);
      SmallVector<Value, 4> host_compute_outputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          return ComputeOutputComponent(ValuePort(id.getInput()), values);
        return nullptr;
      }
    
      if (auto shape_op = dyn_cast<TF::ShapeOp>(op)) {
        // No shape available in an unranked tensor type.
        auto operand_ty =
            mlir::dyn_cast<RankedTensorType>(shape_op.getOperand().getType());
        if (!operand_ty) return nullptr;
    
        // Shape op has a single output so the first element should always be zero
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

          shape.push_back(dim.getSExtValue());
        }
        return tensorflow::GetTypeFromTFTensorShape(shape, etype);
      }
    
      if (auto shape_op = dims.getDefiningOp<ShapeOp>()) {
        if (auto t = mlir::dyn_cast<ShapedType>(shape_op.getInput().getType())) {
          return t;
        }
      }
    
      return UnrankedTensorType::get(etype);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

    absl::StatusOr<mlir::Type> ImporterBase::InferOutputType(
        const Node& node, int idx, mlir::Builder builder) {
      DataType dtype = node.properties()->output_types[idx];
    
      // Returns output type given inference context.
      auto shape_ic =
          [&](shape_inference::InferenceContext* c) -> absl::StatusOr<mlir::Type> {
        // TODO(b/200093974): Post triage, consider following
        // GraphConstructor::ValidateShape in checking _output_shapes always.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/schema/schema_generated.h

        const std::vector<int32_t> *shape = nullptr,
        tflite::TensorType type = tflite::TensorType_FLOAT32,
        bool has_rank = false) {
      auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
      return tflite::CreateVariantSubType(
          _fbb,
          shape__,
          type,
          has_rank);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top