Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for onStop (0.14 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

            RankedTensorType::get(static_shape.size(), rewriter.getIntegerType(64));
        auto static_shape_attr =
            mlir::DenseIntElementsAttr::get(static_shape_type, static_shape);
        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,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  2. pkg/controller/tainteviction/taint_eviction_test.go

    			enablePodDisruptionConditions: true,
    		},
    		{
    			description: "scheduling onto tainted Node",
    			prevPod:     testutil.NewPod("pod1", ""),
    			newPod:      testutil.NewPod("pod1", "node1"),
    			taintedNodes: map[string][]corev1.Taint{
    				"node1": {createNoExecuteTaint(1)},
    			},
    			expectDelete: true,
    		},
    		{
    			description: "scheduling onto tainted Node with toleration",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

      if (!tensor_attr_or.ok()) return nullptr;
      return tensor_attr_or.value();
    }
    
    // Creates a constant op that holds 'tensor_elements'.
    TF::ConstOp GetConstOpFromElementsAttr(ElementsAttr tensor_elements,
                                           OpBuilder builder, Location loc) {
      return builder.create<TF::ConstOp>(loc, tensor_elements);
    }
    
    // Returns ElementsAttr which has the value held by 'resource_tensor'.
    ElementsAttr GetTensorValueAsElementsAttr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_device_context.cc

      if (!status.ok()) {
        done(status);
        return;
      }
    
      // Create a reference to hold onto cpu_tensor until after the literal has
      // been transferred
      TensorReference ref(*cpu_tensor);
      if (UseMultipleStreams()) {
        // Unref the host tensor when the transfer completes.
        // We don't defer the call to done() onto the stream here, and the reasons
        // why this is correct are subtle. We assume that:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    namespace mlir {
    namespace TF {
    
    namespace {
    
    // Creates ConstOp for int32_t value.
    ConstOp createI32ConstOp(int32_t value, Location loc,
                             PatternRewriter* rewriter) {
      auto int_attr = IntegerAttr::get(rewriter->getIntegerType(32), value);
      return rewriter->create<ConstOp>(loc, int_attr);
    }
    
    // Creates ConstantOp for array of int32_t.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

    }
    
    // Parses an R1 value to `shape` if it is a TF::ConstOp output. Otherwise,
    // returns an error.
    LogicalResult GetConstShapeValue(Value shape_value,
                                     llvm::SmallVector<int64_t, 8>* shape) {
      auto shape_op = shape_value.getDefiningOp();
      if (!shape_op) return failure();
      auto shape_const_op = llvm::dyn_cast<TF::ConstOp>(shape_op);
      if (!shape_const_op) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

      "CreateInt32ConstOrCast($0, $_loc, $_builder)">;
    
    // Creates an int32 constant op from an integer attribute $0.
    def CreateInt32ConstOpFromIntAttr
      : NativeCodeCall<"$_builder.create<TF::ConstOp>($_loc, DenseElementsAttr::get(RankedTensorType::get({}, $_builder.getI32Type()), {static_cast<int32_t>($0.cast<IntegerAttr>().getInt())}))">;
    
    //===----------------------------------------------------------------------===//
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

    // reduce_fn call.
    WhileRegionOp CreateDatasetWhile(OpBuilder builder,
                                     ReduceDatasetOp reduce_dataset) {
      auto const_true = builder.create<TF::ConstOp>(
          reduce_dataset.getLoc(),
          DenseIntElementsAttr::get(
              RankedTensorType::get(/*shape=*/{}, builder.getI1Type()), true));
    
      SmallVector<Value, 4> while_input_values;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

          mlir::RankedTensorType::get({}, builder->getIntegerType(32));
      auto split_dimension_attr =
          mlir::DenseElementsAttr::get(split_dim_type, split_dimension);
      auto split_dimension_op = builder->create<mlir::TF::ConstOp>(
          location, split_dim_type, split_dimension_attr);
    
      // Correctly set output shapes of split op output if input shape is statically
      // known.
      mlir::Type output_type;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

    // quantizable but is necessary to make the conversion successful.
    bool IsAlwaysAllowlistedOp(Operation *op) {
      return llvm::isa<
          // clang-format off
          // go/keep-sorted start
          TF::ConstOp,
          TF::IdentityOp,
          TF::PartitionedCallOp,
          TF::StatefulPartitionedCallOp
          // go/keep-sorted end
          // clang-format on
          >(op);
    }
    
    // LINT.IfChange
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top