Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for created (0.15 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      // Create return op for device computation region in the paralle_execute op
      Operation* after_op_r = builder.create<mlir::tf_device::ReturnOp>(
          new_device_cluster.getLoc(), device_results);
    
      builder.setInsertionPointToEnd(&parallel_execute_device_block);
    
      // Create return op for the new device cluster op
      builder.create<mlir::tf_device::ReturnOp>(device_cluster.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        auto begin_op =
            rewriter.create<arith::ConstantOp>(op->getLoc(), type, begin_attr);
        auto end_attr = DenseElementsAttr::get<int32_t>(type, padded_end);
        auto end_op =
            rewriter.create<arith::ConstantOp>(op->getLoc(), type, end_attr);
        auto stride_attr = DenseElementsAttr::get<int32_t>(type, padded_stride);
        auto stride_op =
            rewriter.create<arith::ConstantOp>(op->getLoc(), type, stride_attr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          tensorflow::GetTypeFromTFTensorShape({1}, shape_dtype);
      auto expanded_start_index = rewriter->create<TF::ExpandDimsOp>(
          loc, vector_type, start_index, scalar_zero);
      auto start_position = rewriter->create<TF::ConcatOp>(
          loc, position_type, scalar_zero,
          ArrayRef<Value>({expanded_start_index, partial_start_position}));
    
      // Create the slice size tensor. This is done by concatenating `size` and
      // `partial_size`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      TF_Run(session, run_options, nullptr, nullptr, 0, nullptr, nullptr, 0,
             nullptr, 0, run_metadata, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ("Session was not created with a graph before Run()!",
                string(TF_Message(s)));
      TF_DeleteBuffer(run_metadata);
      TF_DeleteBuffer(run_options);
    
      TF_DeleteDeprecatedSession(session, s);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

      TensorType zero_point_type = scale_type.clone(rewriter.getI32Type());
      scale = rewriter.create<TF::ConstOp>(
          loc, scale_type,
          DenseFPElementsAttr::get(scale_type,
                                   {static_cast<float>(qtype.getScale())}));
      zero_point = rewriter.create<TF::ConstOp>(
          loc, zero_point_type,
          DenseIntElementsAttr::get(zero_point_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      // (a) read-only. These reads can be replaced by a hoisted read created
      //        before the WhileOp (similar to if and case).
      // (b) written: since the value is written in the loop (which can only in
      //        loop body, all these will become loop variables. Since all resource
      //        variables are removed from the loop variabled during
      //        canonicalizationW, we need to create new operand/result slots. The
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

        func::FuncOp parent_func, ModuleOp module, const std::string& name,
        bool flag_for_inlining) {
      // Moves all of the Operations in 'ops' into a newly created func.FuncOp
      // function named 'name' and replaces the original ops with a call to the
      // newly created function using a tf.StatefulPartitionedCall. Here,
      // 'parent_func' is the function that holds the original set of ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      if (!shaped_type) {
        return errors::Internal("Constant doesn't have a shape");
      }
      auto op = builder.create<tfl::ExternalConstOp>(
          loc, shaped_type, builder.getI32IntegerAttr(buffer_index));
      return op.getOperation();
    }
    
    // TODO(b/172664358): Creates a new op instead of reusing constant op.
    // Creates a constant op with "tfl.is_variable" attribute to represent stateful
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
Back to top