Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 129 for created (0.46 sec)

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

            dyn_cast<arith::ConstantOp>(op.getOperand(0).getDefiningOp());
        if (!input_op) {
          return failure();
        }
    
        Builder builder(op.getContext());
        auto new_gather_op = rewriter.create<TFL::GatherOp>(
            op.getLoc(),
            /*result=*/
            mlir::cast<TensorType>(op.getResult().getType())
                .clone(builder.getI4Type()),
            /*operand=*/op.getOperands(), op->getAttrs());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc

                                assign.getValue().getType());
      }
    
      OpBuilder builder(replicate_op);
      // Clone this old replicate op but with new result types.
      auto new_replicate_op = builder.create<tf_device::ReplicateOp>(
          replicate_op->getLoc(), new_result_types, replicate_op->getOperands(),
          replicate_op->getAttrs());
    
      // Move region to the new op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

        const SmallVector<mlir::Type, NOutput>& output_types) {
      auto func_type = builder->getFunctionType(input_types, output_types);
      auto func = func::FuncOp::create(
          mlir::NameLoc::get(builder->getStringAttr("fused_func")), "fused_func",
          func_type, {});
    
      func.addEntryBlock();
      mlir::StringAttr attr_value = builder->getStringAttr("MaxUnpooling2D");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

        } else {
          /* If we're not running on a TPU node, we might not be able to
           * actually call the part of the TPU API that gives us layout.
           * This happens e.g. for unit tests. Below we just create a reasonable
           * layout.  We sort by dimension size, which makes the layout agree with
           * the "correct" TPU layout in surprisingly many cases.
           * Note that the corresponding InfeedEnqueue op will be generated
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental.cc

    using tensorflow::tracing::TracingTensorHandle;
    
    void TF_SetTracingImplementation(const char* name, TF_Status* s) {
      tsl::Set_TF_Status_from_Status(s, SetDefaultTracingEngine(name));
    }
    
    // Creates a new TensorFlow function, it is an execution context attached to a
    // given tracing context.
    TF_ExecutionContext* TF_CreateFunction(const char* fn_name, TF_Status* s) {
      return wrap(CreateTracingExecutionContext(fn_name, s));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 10:15:17 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

      // reachable from the `fetch` operands can be eliminated.
    
      llvm::SmallPtrSet<Operation*, 8> reachable_ops;
      llvm::SmallVector<Operation*, 8> ops_to_visit;
    
      // Visit fetches first to create a starting point for ops that are reachable.
      reachable_ops.insert(graph.GetFetch());
      VisitOpOperands(graph, graph.GetFetch(), &reachable_ops, &ops_to_visit);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/get_arithmetic_count.cc

        auto attr =
            builder.getIntegerAttr(builder.getIntegerType(64), arithmetic_count);
        op->setAttr("_arithmetic_count", attr);
      });
    }
    
    }  // namespace
    
    /// Creates an instance of the TensorFlow Lite dialect GetArithmeticCount
    /// pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateGetArithmeticCountPass() {
      return std::make_unique<GetArithmeticCountPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc

        // of `scf.if` from that of `tf.IfRegion`.
        auto scf_if_condition =
            rewriter.create<tensor::ExtractOp>(loc, op.getCond());
    
        TypeRange tf_if_region_return_type = op.getResultTypes();
    
        // Create the `scf.if` op.
        auto scf_if_op =
            rewriter.create<scf::IfOp>(loc, tf_if_region_return_type,
                                       scf_if_condition, /*withElseRegion=*/true);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.cc

        InsertTFLQuantOpsAfterTFFakeQuantOp<
            TF::FakeQuantWithMinMaxArgsOp, /*PerAxis=*/false,
            FetchMinMaxAttrs<TF::FakeQuantWithMinMaxArgsOp>>;
    
    // Removes the wrapper of the tf.FakeQuant* ops and creates the tfl.quantize
    // and tfl.dequantize pairs before tf.FakeQuant* being foled.
    LogicalResult ConvertFakeQuantOps(func::FuncOp func, MLIRContext* ctx,
                                      bool use_fake_quant_num_bits) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc

        custom_op->setAttrs(inner_op->getAttrs());
        builder.create<YieldOp>(loc, inner_op->getResults());
        custom_op.getBody().takeBody(region);
    
        op->replaceAllUsesWith(custom_op);
        op->erase();
      }
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateRaiseCustomOpsPass() {
      return std::make_unique<RaiseCustomOpsPass>();
    }
    
    // Creates an instance of the TensorFlow Lite dialect raise custom op pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top