Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ReplaceOpWithNewOp (0.7 sec)

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

                                    tensorflow::TensorShape(result_shape));
          auto attr_or = tensorflow::ConvertTensor(tensor, &rewriter);
          if (!attr_or.ok()) return failure();
          rewriter.replaceOpWithNewOp<TF::ConstOp>(op, attr_or.value());
          return success();
        }
    
        // Extract individual tensor list element and combine them using the tf.Pack
        // op.
        Location loc = op.getLoc();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      // Finally, create a new while with additional return values.
      hoister.ReplaceOpWithNewOp();
      return success();
    }
    
    // Lift resources out of the regions attached to `op`
    LogicalResult RegionResourceHoister::ReplaceOpWithNewOp(Operation* op) {
      if (auto while_op = dyn_cast<TF::WhileRegionOp>(op))
        return HoistResourcesOutOfWhileRegion(while_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

                                       /*keep_dims=*/rewriter.getBoolAttr(true));
    
        if (use_log) {
          Value log = rewriter.create<TF::LogOp>(loc, sum);
          rewriter.replaceOpWithNewOp<TF::SubOp>(op, shifted_logits, log);
        } else {
          rewriter.replaceOpWithNewOp<TF::DivOp>(op, exp, sum);
        }
        return success();
      }
    };
    
    }  // namespace
    
    void PopulateLoweringTFPatterns(MLIRContext *context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

                                            ~strided_slice_op.getNewAxisMask();
    
        auto attribute_type = rewriter.getIntegerType(64);
        rewriter.replaceOpWithNewOp<TF::StridedSliceOp>(
            op, strided_slice_op.getType(), reshape, strided_slice_op.getBegin(),
            strided_slice_op.getEnd(), strided_slice_op.getStrides(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

            return failure();
          }
        }
    
        rewriter.setInsertionPoint(call_op);
    
        const StringAttr new_quant_func_name =
            symbol_table.insert(new_quantized_func);
        rewriter.replaceOpWithNewOp<TF::PartitionedCallOp>(
            call_op, result_types, args,
            FlatSymbolRefAttr::get(new_quant_func_name));
    
        return success();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
Back to top