Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for if_builder (0.4 sec)

  1. test/typeparam/issue50598.dir/a1.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a1
    
    import "./a0"
    
    func New() int {
    	return a0.IntBuilder{}.New()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 236 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td

    def IsPrecisionEmpty :
      Constraint<CPred<"IsPrecisionEmpty($0)">>;
    
    // Creates Einsum Op from XlaDotV2 Op by generating equation.
    def CreateEinsumOpFromXlaDotV2Op : NativeCodeCall<
      "CreateEinsumOpFromXlaDotV2Op($_builder, $_loc, $0...)">;
    
    // Convert XlaDotV2 Op to Einsum Op with above two functions.
    def ConvertXlaDotV2OpToEinsumOp : Pat<
      (TF_XlaDotV2Op:$dot $lhs, $rhs, $dot_dimension_numbers, $precision_config),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      func.addEntryBlock();
      mlir::OpBuilder op_builder(func.getBody());
    
      // Create the TF op
      const std::string tf_op_full_name = absl::StrCat("tf.", node_def.op());
      mlir::OperationState op_state(loc, tf_op_full_name);
      op_state.addOperands(func.getArguments());
      op_state.addTypes(output_tys);
      op_state.addAttributes(attrs);
      mlir::Operation* tf_op = op_builder.create(op_state);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

      auto resultType =
          OpTrait::util::getBroadcastedType(x.getType(), y.getType());
      if (!resultType) {
        mlir::emitError($_state.location, "non-broadcastable operands");
        resultType = $_builder.getNoneType();
      }
      return build($_builder, $_state, resultType, x, y);
    }]>];
    }
    
    // Mixin class defining a builder for comparison ops supporting broadcast
    // behavior. The result type has bool element type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

    // Return intermediate shape before broadcasting, wrapped in a constant op.
    def ExpandedShape : NativeCodeCall<"ExpandedShape($_builder, $0, $1, $2)">;
    def ExpandedDynamicShape : NativeCodeCall<"ExpandedDynamicShape($_builder, $0, $1, $2)">;
    
    def : Pat<(MHLO_ConstantOp:$output $value), (TF_ConstOp $value),
              [(TF_Tensor $output)]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

    }
    
    // Control type.
    def TfeControlType : Type<CPred<"$_self.isa<ControlType>()">, "control">,
                         BuildableType<"$_builder.getType<ControlType>()">;
    
    // Token type.
    def TfeTokenType : Type<CPred<"$_self.isa<TokenType>()">, "token">,
                       BuildableType<"$_builder.getType<TokenType>()">;
    
    // TODO(hinsu): Define and use TensorType instead of AnyType for data operands
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.td

    // one I32IntegerAttr from the given index.
    class GetI32At<int index>: NativeCodeCall<
      "$_builder.getI32IntegerAttr(static_cast<int32_t>(*($0.getValues<int64_t>().begin() + " # index #")))">;
    
    def GetI32DenseAttr: NativeCodeCall<
      "DenseI64AttrToI32Attr($0, $_builder)">;
    
    // Receives a composite DictionaryAttr and returns the value of the Attribute
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

      CPred<"quant::ReshapableTo1DTensor($0.getType().cast<ShapedType>())">,
      "Checks if the value dims are all ones except the right most dim">;
    
    def ReshapeTo1DTensor : NativeCodeCall<
      "quant::ReshapeTo1DTensor($_builder, $_loc, $0)">;
    
    def HasEqualShape : Constraint<CPred<
      "$0.getType().cast<ShapedType>().hasRank() && "
      "$1.getType().cast<ShapedType>().hasRank() && "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.td

    def CreateXLAConvOpFromTFConv2DOp : NativeCodeCall<
      "CreateXlaConvOpFromTfConv2dOp($_builder, $_loc, $0...)">;
    
    def CreateXLAConvOpFromTFDepthwiseConv2DOp : NativeCodeCall<
      "CreateXlaConvOpFromTfDepthwiseConv2dOp($_builder, $_loc, $0...)">;
    
    def CreateXlaDotV2OpFromTfMatMulOp : NativeCodeCall<
      "CreateXlaDotV2OpFromTfMatMulOp($_builder, $_loc, $0...)">;
    
    def CreateXLAConvOpFromTFConv3DOp : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

          # imported.
          model_saver.restore(sess, checkpoint_dir)
    
        v1_builder.add_meta_graph_and_variables(
            sess,
            tags,
            signature_def_map=signature_def_map,
            main_op=_find_op(sess.graph, op_name=init_op_name),
            saver=model_saver,
        )
    
      v1_builder.save()
    
      if function_aliases:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top