Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 345 for setLoc (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

                              op.getLoc(), &rewriter);
      } else if (out_reshape_need) {
        out = createOutputReshapeOpForDynamic(out, reshape_shape, original_lhs,
                                              original_rhs, original_dnums,
                                              op.getLoc(), &rewriter);
      }
      out = createTransposeOp(out, op.getLoc(), out_transpose, &rewriter);
    
      rewriter.replaceOp(op, out);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/utils/fake_quant_utils.h

        // and its users.
        auto quantize = rewriter.create<quantfork::QuantizeCastOp>(
            tf_op.getLoc(), qtype.getValue(), input);
        auto dequantize = rewriter.create<quantfork::DequantizeCastOp>(
            tf_op.getLoc(), res_type, quantize.getResult());
        tf_op.getOutputs().replaceAllUsesWith(dequantize);
    
        return success();
      }
    
      bool use_fake_quant_num_bits_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

        for (const auto& arg : func_op.getArguments()) {
          arg_locs.push_back(arg.getLoc());
        }
      }
    
      // Creates a new main function.
      auto func_type = FunctionType::get(context, arg_types, result_types);
      auto main_func = builder.create<func::FuncOp>(
          module_op.getLoc(), kImportModelDefaultGraphFuncName, func_type);
      builder.createBlock(&main_func.getBody(), main_func.begin(), arg_types,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

          ++num_unscheduled_ops;
        }
      }
      emitRemark(func.getLoc(), func.getName())
          << ": " << num_part_ops << " ops delegated out of " << num_all_ops
          << " ops with " << num_partitions_after
          << " partitions (originally: " << num_partitions_before << ")";
      if (!scheduled_everything) {
        emitError(func.getLoc(), func.getName())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

        if (variable_name.empty()) {
          return signalPassFailure();
        }
        VarHandleOp var_handle_op = builder.create<VarHandleOp>(
            variable_v2_op.getLoc(),
            ArrayRef<Type>{RankedTensorType::get(
                {}, TF::ResourceType::get(ArrayRef<TensorType>{tensor_type},
                                          builder.getContext()))},
            ArrayRef<Value>{},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/runtime/signal_openbsd_arm.go

    func (c *sigctxt) sigcode() uint32 { return uint32(c.info.si_code) }
    func (c *sigctxt) sigaddr() uint32 {
    	return *(*uint32)(add(unsafe.Pointer(c.info), 16))
    }
    
    func (c *sigctxt) set_pc(x uint32)  { c.regs().sc_pc = x }
    func (c *sigctxt) set_sp(x uint32)  { c.regs().sc_usr_sp = x }
    func (c *sigctxt) set_lr(x uint32)  { c.regs().sc_usr_lr = x }
    func (c *sigctxt) set_r10(x uint32) { c.regs().sc_r10 = x }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 13 18:13:30 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h

        // and its users.
        Value value = tf_op.getOutputs();
        auto quantize = rewriter.create<TFL::QuantizeOp>(
            tf_op.getLoc(), qtype.getValue(), value, qtype);
        auto dequantize = rewriter.create<TFL::DequantizeOp>(
            tf_op.getLoc(), res_type, quantize.getOutput());
        value.replaceAllUsesWith(dequantize);
        quantize.getOperation()->replaceUsesOfWith(dequantize, value);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

      if (IsKVCacheCompositeOp(composite)) {
        return builder.create<TFL::CustomOp>(
            composite->getLoc(), composite->getResultTypes(),
            composite->getOperands().slice(2, 3), composite.getName(),
            CustomOption(&builder, custom_option_buffer));
      }
      return builder.create<TFL::CustomOp>(
          composite->getLoc(), composite->getResultTypes(),
          composite->getOperands(), composite.getName(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

        }
      }
      auto island = OpBuilder(fetch).create<IslandOp>(
          fetch.getLoc(), data_types,
          /*control=*/ControlType::get(fetch.getContext()),
          /*controlInputs=*/control_fetches);
      island.getBody().push_back(new Block);
      OpBuilder::atBlockEnd(&island.GetBody())
          .create<YieldOp>(fetch.getLoc(), data_fetches);
      const int fetch_control_idx = data_fetches.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

        return failure();
      }
    
      auto tfl_fusable_op = builder.create<TFL::CustomOp>(
          func->getLoc(), func.getFunctionType().getResults(), func.getArguments(),
          custom_op_name, CustomOption(&builder, custom_option_buffer));
      builder.create<func::ReturnOp>(func->getLoc(), tfl_fusable_op.getResults());
      return success();
    }
    
    // Abstracts the conversion of the embedded lookup composite function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top