Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 169 for setAttr (0.38 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          mlir::UnknownLoc::get(&context), result_types);
      cluster->setAttr(kNumCoresPerReplicaAttr,
                       builder.getIntegerAttr(builder.getIntegerType(64), 1));
      cluster->setAttr(kTopologyAttr, builder.getStringAttr(""));
      cluster->setAttr(kDeviceAssignmentAttr, builder.getArrayAttr({}));
    
      EXPECT_FALSE(HasModelParallelism(cluster));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

      added_call_op->setAttr(kInferenceType, inference_type);
      added_func_op->setAttr(kDevice, device);
      added_func_op->setAttr(kInferenceType, inference_type);
    
      std::string function_name = absl::StrCat(interface_name.getValue().str(), "_",
                                               device.getValue().str(), "_",
                                               inference_type.getValue().str());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      // function name can be changed by those passes.
      call_op->setAttr(TF::kStablehloEntryFunctionAttrName,
                       FlatSymbolRefAttr::get(builder.getStringAttr(func_name)));
      // Store the custom attribute to restore the function name when loading it
      // back in the post calibration stage. As mentioned above, the above entry
      // function attribute is not reliable.
      call_op->setAttr(kOriginalStablehloEntryFunctionAttrName,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

            return func.emitError()
                   << "failed to rename StableHLO function " << func.getSymName();
          }
        }
        if (is_main_func) {
          main_func_name = func.getSymNameAttr();
        }
        func->setAttr(kFromXlaCallModuleAttrName, builder.getUnitAttr());
      }
      if (!main_func_name) {
        return stablehlo_module.emitError()
               << "StableHLO module does not have an entry function";
      }
      return main_func_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc

      if (!interface_name.has_value()) {
        func.emitError("the func op does not have interface_name");
        return nullptr;
      }
    
      cloned_func->setAttr(
          kDevice, builder->getStringAttr(target_device_inference_type.hardware));
      cloned_func->setAttr(kInferenceType,
                           builder->getStringAttr(GetInferenceString(
                               target_device_inference_type.inference_type)));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          auto new_key = StringAttr::get(ctx, old_key.str() + "_dtoh_0");
          op->setAttr("key", new_key);
        } else if (isa<TF::XlaRecvFromHostOp>(op)) {
          StringRef old_key = op->getAttrOfType<StringAttr>("key").getValue();
          auto new_key = StringAttr::get(ctx, old_key.str() + "_htod_0");
          op->setAttr("key", new_key);
        }
      });
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      ConstOp zero = builder.create<ConstOp>(loc, zero_attr);
      zero->setAttr(kICIWeightDistributionMlirBridgeMarker,
                    builder.getBoolAttr(true));
      ConstOp shape = builder.create<ConstOp>(loc, shape_attr);
      shape->setAttr(kICIWeightDistributionMlirBridgeMarker,
                     builder.getBoolAttr(true));
      FillOp fill = builder.create<FillOp>(loc, shape, zero);
      fill->setAttr(kICIWeightDistributionMlirBridgeMarker,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

      // Both the device attribute and compile_device_type attribute should be
      // propagated to the reduce function call.
      reduce_call->setAttr(kDeviceAttr,
                           reduce_dataset->getAttrOfType<StringAttr>(kDeviceAttr));
      reduce_call->setAttr(
          TF::kCompileDeviceTypeAttr,
          reduce_dataset->getAttrOfType<StringAttr>(TF::kCompileDeviceTypeAttr));
    
      SmallVector<Value, 4> if_returns;
    
    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/transforms/host_runtime/tpu_rewrite_pass.cc

        if (auto device = res->getAttrOfType<StringAttr>("device")) {
          if (!device.getValue().empty())
            result_id->setAttr("device", device);
          else
            result_id->setAttr("device", compile_device_op);
        } else if (compile_device_op) {
          result_id->setAttr("device", compile_device_op);
        }
        res.getOutput().replaceAllUsesWith(compile_op->getResult(0));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

      new_call_op->setAttr(kEntryFuncAttrName,
                           rewriter.getStringAttr(new_ref_func_name.getValue()));
      new_call_op->setAttrs(call_op->getAttrs());
      new_call_op->removeAttr(rewriter.getStringAttr(kQuantTraitAttrName));
    
      FlatSymbolRefAttr new_func_name_attr =
          FlatSymbolRefAttr::get(rewriter.getContext(), new_ref_func_name);
      new_call_op->setAttr(kEntryFuncAttrName, new_func_name_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top