mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9115df2895
commit
2be7442dd5
9 changed files with 26 additions and 48 deletions
|
|
@ -92,8 +92,7 @@ def send_code(code: str):
|
|||
def main():
|
||||
"""Entrypoint for local execution. Accepts code as input."""
|
||||
# Example usage: pass code as a string argument
|
||||
return_obj = send_code.remote(
|
||||
"""
|
||||
return_obj = send_code.remote("""
|
||||
import torch
|
||||
import math
|
||||
|
||||
|
|
@ -144,8 +143,7 @@ for step in range(20):
|
|||
print(f"Step {step + 1}: x = {x.item():.4f}, loss = {loss.item():.4f}")
|
||||
|
||||
print(f"\\nOptimal x: {x.item():.4f}")
|
||||
"""
|
||||
)
|
||||
""")
|
||||
|
||||
print("\n===== Optimizer Execution Result =====")
|
||||
print(f"Filename: {return_obj['filename']}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue